
Mutation Testing
This validates your tests by deliberately breaking your code to see if the tests catch it. Install Stryker for TypeScript/JavaScript (works with Vitest or bun test) or mutmut for Python, and it'll introduce small mutations like flipping operators or changing conditionals. Tests that still pass are weak. You're aiming for 80%+ of mutants killed. The Bun runner is nice if you're using native bun test, though it runs sequentially for accurate coverage mapping. The workflow is straightforward: get decent coverage first, run mutation testing, check the HTML report to see which mutants survived, then tighten up those assertions. It's slower than regular testing but finds gaps that coverage percentages miss.
- skills.sh installs
- 456
- GitHub stars
- 248
- last updated
- Aug 21, 2026
Install
$ npx -y skills add secondsky/claude-skills --skill mutation-testing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Mutation Testing
Expert knowledge for mutation testing - validating that your tests actually catch bugs by introducing deliberate code mutations.
Core Concept
- Mutants: Small code changes introduced automatically
- Killed: Test fails with mutation (good - test caught the bug)
- Survived: Test passes with mutation (bad - weak test)
- Score: Percentage of mutants killed (aim for 80%+)
TypeScript/JavaScript (Stryker)
Vitest Runner
Installation
# Using Bun
bun add -d @stryker-mutator/core @stryker-mutator/vitest-runner
# Using npm
npm install -D @stryker-mutator/core @stryker-mutator/vitest-runner
Configuration
// stryker.config.mjs
export default {
packageManager: 'bun',
reporters: ['html', 'clear-text', 'progress'],
testRunner: 'vitest',
coverageAnalysis: 'perTest',
mutate: ['src/**/*.ts', '!src/**/*.test.ts'],
thresholds: { high: 80, low: 60, break: 60 },
incremental: true,
}
Bun Native Runner (bun test)
Use when projects use bun test directly (not Vitest).
Requirements
Sponsors
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Testing & QA, Code Review & Quality, Python
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 146- Api Error Handling455
- Internationalization I18n455
- Security Headers Configuration454
- Seo Optimizer453
- Sequential Thinking448
- Bun Sqlite442
- Websocket Implementation440
- Mobile App Debugging439
- Root Cause Tracing438
- App Store Deployment437
- Database Schema Design437
- Recommendation Engine437
- Seo Keyword Cluster Builder437
- Bun Sveltekit436
- Push Notification Setup436
- Drizzle Orm D1435
- Api Response Optimization434
- Api Pagination433
- Api Filtering Sorting432
- Defense In Depth Validation430
- Session Management427
- Ultracite426
- Nuxt Production425
- Api Gateway Configuration422