Commit dd5d538
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
File tree
21 files changed
+4066
-384
lines changed- .github/workflows
- src
- core
- generators
- test/unit
- utils
21 files changed
+4066
-384
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments