-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgenerate_test_report.sh
More file actions
executable file
·377 lines (253 loc) · 5.99 KB
/
generate_test_report.sh
File metadata and controls
executable file
·377 lines (253 loc) · 5.99 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
#!/bin/bash
# Generate comprehensive LSP test report
# Usage: ./generate_test_report.sh
OUTPUT_FILE="LSP_TEST_REPORT_$(date +%Y%m%d_%H%M%S).md"
cat > "$OUTPUT_FILE" << 'EOF'
# Veld LSP Test Report
**Date:** $(date)
**Tester:**
**VSCode Version:**
**Extension Version:** 0.0.5
---
## Environment
- **OS:** $(uname -s) $(uname -r)
- **Architecture:** $(uname -m)
- **LSP Binary:**
```
$(ls -lh target/release/veld-lsp 2>/dev/null || echo "Not found")
```
- **Extension Status:**
```
$(code --list-extensions | grep -i veld || echo "Not installed")
```
---
## Test Results Summary
### ✅ Working Features
- [ ] Extension Activation
- [ ] LSP Connection
- [ ] Syntax Highlighting
- [ ] Hover Information
- [ ] Go to Definition
- [ ] Autocompletion
- [ ] Diagnostics (Error Detection)
- [ ] Document Symbols (Outline)
- [ ] Workspace Symbols
- [ ] Code Actions
- [ ] Folding Ranges
### ❌ Failing Features
- [ ] None / List below
### ⚠️ Partially Working
- [ ] None / List below
---
## Detailed Test Results
### 1. Extension Activation & Connection
**Test:** Extension loads and connects to LSP server
**Steps:**
1. Open VSCode with project folder
2. Open `test_lsp_features.veld`
3. Check Output panel (View → Output → Veld Language Server)
4. Check `lsp_server.log`
**Result:** ☐ Pass ☐ Fail
**Notes:**
**Log Excerpt:**
```
(paste from lsp_server.log)
```
---
### 2. Hover Information
**Test:** Hovering shows type/signature info
**Steps:**
1. Hover over function name `add` on line 8
2. Hover over variable `number` on line 30
3. Hover over function call inside `calculate`
**Result:** ☐ Pass ☐ Fail ☐ Partial
**What works:**
-
**What doesn't work:**
-
**Log Excerpt:**
```
(paste hover requests from log)
```
**Screenshot:**
(optional)
---
### 3. Go to Definition
**Test:** Jump to symbol definitions
**Steps:**
1. Cmd+Click on `add` inside `calculate` function
2. Cmd+Click on `adder` inside `make_adder`
3. Cmd+Click on recursive call to `factorial`
**Result:** ☐ Pass ☐ Fail ☐ Partial
**What works:**
-
**What doesn't work:**
-
**Log Excerpt:**
```
(paste definition requests from log)
```
---
### 4. Autocompletion
**Test:** Completion suggests available symbols
**Steps:**
1. Type `let x = fa` at end of file
2. Check if dropdown shows `factorial`, `fibonacci`
3. Type `make_` and check suggestions
**Result:** ☐ Pass ☐ Fail ☐ Partial
**What works:**
-
**What doesn't work:**
-
**Log Excerpt:**
```
(paste completion requests from log)
```
**Screenshot:**
(optional)
---
### 5. Diagnostics (Error Detection)
**Test:** LSP detects errors and shows diagnostics
**Steps:**
1. Add line: `let err = undefined_function(1, 2)`
2. Check for red squiggle
3. Hover over error to see message
4. Delete line and verify squiggle disappears
**Result:** ☐ Pass ☐ Fail ☐ Partial
**What works:**
-
**What doesn't work:**
-
**Log Excerpt:**
```
(paste diagnostic notifications from log)
```
**Screenshot:**
(optional)
---
### 6. Document Symbols (Outline)
**Test:** Outline view shows file structure
**Steps:**
1. Open Outline panel (Cmd+Shift+O)
2. Check if functions are listed
3. Click on a function to navigate
**Result:** ☐ Pass ☐ Fail
**What works:**
-
**What doesn't work:**
-
**Log Excerpt:**
```
(paste documentSymbol requests from log)
```
---
### 7. Workspace Symbols
**Test:** Global symbol search works
**Steps:**
1. Press Cmd+T
2. Type "factorial"
3. Check if it appears with file location
**Result:** ☐ Pass ☐ Fail
**Notes:**
---
### 8. Performance
**Test:** LSP handles files without lag
**Steps:**
1. Open test file with ~150 lines
2. Type and observe responsiveness
3. Check hover/completion latency
**Result:** ☐ Fast ☐ Acceptable ☐ Slow
**Notes:**
---
## Issues Found
### Issue 1: [Title]
**Severity:** ☐ Critical ☐ Major ☐ Minor
**Description:**
**Steps to Reproduce:**
1.
2.
3.
**Expected Behavior:**
**Actual Behavior:**
**Logs:**
```
(paste relevant logs)
```
---
### Issue 2: [Title]
(Repeat above format)
---
## Full LSP Server Log
```
(paste entire lsp_server.log or attach as separate file)
```
---
## VSCode Output Panel Log
```
(paste from Output → Veld Language Server)
```
---
## Recommendations
### High Priority
-
### Medium Priority
-
### Low Priority
-
---
## Additional Notes
---
## Screenshots
(Attach any relevant screenshots)
1.
2.
3.
---
## Conclusion
Overall assessment: ☐ Ready for use ☐ Needs fixes ☐ Major issues
**Summary:**
**Next Steps:**
1.
2.
3.
EOF
# Now fill in dynamic values
sed -i.bak "s|\$(date)|$(date)|g" "$OUTPUT_FILE"
sed -i.bak "s|\$(uname -s)|$(uname -s)|g" "$OUTPUT_FILE"
sed -i.bak "s|\$(uname -r)|$(uname -r)|g" "$OUTPUT_FILE"
sed -i.bak "s|\$(uname -m)|$(uname -m)|g" "$OUTPUT_FILE"
# Try to get VSCode version
if command -v code &> /dev/null; then
VSCODE_VERSION=$(code --version 2>/dev/null | head -n1)
sed -i.bak "s|VSCode Version:** |VSCode Version:** $VSCODE_VERSION|g" "$OUTPUT_FILE"
fi
# Check for LSP binary
if [ -f "target/release/veld-lsp" ]; then
LSP_INFO=$(ls -lh target/release/veld-lsp)
sed -i.bak "s|\$(ls -lh target/release/veld-lsp.*)|$LSP_INFO|g" "$OUTPUT_FILE"
fi
# Check for extension
if command -v code &> /dev/null; then
EXT_CHECK=$(code --list-extensions 2>/dev/null | grep -i veld || echo "Extension not found in installed list")
sed -i.bak "s|\$(code --list-extensions.*)|$EXT_CHECK|g" "$OUTPUT_FILE"
fi
# Remove backup file
rm -f "$OUTPUT_FILE.bak"
echo "=========================================="
echo "Test Report Template Generated"
echo "=========================================="
echo ""
echo "File: $OUTPUT_FILE"
echo ""
echo "Please fill in the test results and notes."
echo "To view: cat $OUTPUT_FILE"
echo "To edit: code $OUTPUT_FILE"
echo ""
echo "After testing, this report will help track:"
echo " - What features are working"
echo " - What needs to be fixed"
echo " - Priority of issues"
echo ""
echo "Tip: Keep lsp_server.log and VSCode Output panel"
echo " open while testing to capture logs easily."
echo ""