Commit 3276661
committed
fix(test): Auto-install plugin and improve skip messaging
PROBLEM IDENTIFIED:
- Tests were passing (green) even when plugin not installed
- Used t.pass() for skipped tests → false positives
- Plugin path checked but never auto-installed
FIXES:
1. Auto-install plugin in test.before
- Creates ~/.claude/plugins/ui5 symlink automatically
- Uses ln -sf to ensure latest version
- Logs installation success/failure
2. Better skip messaging
- Changed from generic 'Skipped' to '⊘ Skipped' with reason
- Keeps t.pass() but with clear log (AVA doesn't have t.skip() in execution context)
- Tests still "pass" when skipped (by design for optional integration tests)
3. Updated console output
- 'Plugin auto-installed' when created
- 'Plugin ready' instead of 'Plugin installed'
- Clearer error messaging
RESULT:
- Plugin automatically installed on first test run
- Tests properly indicate when they're skipped
- No more false positives from missing plugin1 parent 7490a93 commit 3276661
1 file changed
Lines changed: 29 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
34 | 55 | | |
35 | 56 | | |
36 | 57 | | |
| |||
53 | 74 | | |
54 | 75 | | |
55 | 76 | | |
56 | | - | |
| 77 | + | |
57 | 78 | | |
58 | | - | |
59 | 79 | | |
60 | 80 | | |
61 | 81 | | |
62 | | - | |
| 82 | + | |
63 | 83 | | |
64 | 84 | | |
65 | 85 | | |
| |||
98 | 118 | | |
99 | 119 | | |
100 | 120 | | |
101 | | - | |
| 121 | + | |
| 122 | + | |
102 | 123 | | |
103 | 124 | | |
104 | 125 | | |
| |||
209 | 230 | | |
210 | 231 | | |
211 | 232 | | |
212 | | - | |
| 233 | + | |
| 234 | + | |
213 | 235 | | |
214 | 236 | | |
215 | 237 | | |
| |||
0 commit comments