Skip to content

Commit dd5d538

Browse files
johnbillionclaude
andcommitted
Add mutation testing with Stryker and refactor for testability
- Refactor codebase to separate pure logic from VS Code adapters - Create src/core/ directory with framework-agnostic code - Add Stryker mutation testing configuration - Add 51 unit tests for core modules - Achieve 63.70% mutation score (up from 5.48%) Test improvements: - typeHelpers: 0% → 62.50% (45 mutants killed) - snippetGenerator: 0% → 73.33% (55 mutants killed) - docblockGenerator: 0% → 62.79% (27 mutants killed) - hookHelpers: 0% → 56.58% (43 mutants killed) - matchers: 61.54% maintained (16 mutants killed) All 208 existing tests pass with zero regressions. 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 668b02a commit dd5d538

21 files changed

+4066
-384
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ jobs:
3333

3434
- name: Run tests
3535
run: xvfb-run -a npm test
36+
37+
- name: Run mutation testing
38+
run: npm run test:mutation

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ node_modules
22
.vscode-test/
33
*.vsix
44
/out
5+
.stryker-tmp/
6+
reports/

.mocharc.unit.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"spec": "out/test/unit/**/*.test.js",
3+
"ui": "tdd",
4+
"timeout": 5000,
5+
"color": true
6+
}

0 commit comments

Comments
 (0)