-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup-test-env.sh
More file actions
executable file
·94 lines (78 loc) · 2.42 KB
/
Copy pathsetup-test-env.sh
File metadata and controls
executable file
·94 lines (78 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
# Memory Bank EDH Test Setup Script
echo "🚀 Setting up Memory Bank Extension for EDH Testing..."
# 1. Compile the extension
echo "📦 Compiling extension..."
npm run compile
if [ $? -ne 0 ]; then
echo "❌ Compilation failed! Please fix errors before testing."
exit 1
fi
echo "✅ Extension compiled successfully!"
# 2. Check if VS Code is available
if ! command -v code &> /dev/null; then
echo "⚠️ VS Code command not found. Make sure VS Code is installed and 'code' is in your PATH."
echo " You can still test by opening this folder in VS Code and pressing F5."
fi
# 3. Create a test workspace directory
TEST_WORKSPACE="$HOME/memory-bank-test-workspace"
if [ ! -d "$TEST_WORKSPACE" ]; then
echo "📁 Creating test workspace at $TEST_WORKSPACE"
mkdir -p "$TEST_WORKSPACE"
# Create a simple test project structure
cat > "$TEST_WORKSPACE/README.md" << 'EOF'
# Test Project for Memory Bank
This is a test project to validate Memory Bank functionality.
## Test Cases
- [ ] Authentication system
- [ ] User dashboard
- [ ] Admin panel
EOF
cat > "$TEST_WORKSPACE/package.json" << 'EOF'
{
"name": "memory-bank-test-project",
"version": "1.0.0",
"description": "Test project for Memory Bank extension",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"express": "^4.18.0"
}
}
EOF
cat > "$TEST_WORKSPACE/index.js" << 'EOF'
// Test application for Memory Bank
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.json({ message: 'Memory Bank test app is running!' });
});
app.listen(3000, () => {
console.log('Test app listening on port 3000');
});
EOF
echo "✅ Test workspace created with sample files"
else
echo "📁 Test workspace already exists at $TEST_WORKSPACE"
fi
echo ""
echo "🎯 Ready to test! Follow these steps:"
echo ""
echo "1. Open VS Code with this Memory Bank project:"
echo " code $(pwd)"
echo ""
echo "2. Press F5 to launch Extension Development Host"
echo ""
echo "3. In the new window, open the test workspace:"
echo " File > Open Folder > $TEST_WORKSPACE"
echo ""
echo "4. Start testing with GitHub Copilot Chat:"
echo " - Open GitHub Copilot Chat"
echo " - Try: 'I'm working on implementing authentication'"
echo " - Look for Memory Bank tool suggestions"
echo ""
echo "5. Check the EDH_TESTING_GUIDE.md for detailed test cases"
echo ""
echo "🚀 Happy testing!"