mutation-testing
Measuring test quality by mutating code and checking if tests catch mutations.
от sethdford★ 51 звезда на GitHub
Установить mutation-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Mutation Testing
Technique to measure how well tests detect bugs by injecting mutations.
Context
You are using mutation testing to validate test quality. High mutation score means tests actually verify behavior.
Domain Context
- Mutation: Small code change; operator flip, boundary change, constant modification
- Killed: Test fails on mutation; test is effective
- Survived: Test passes on mutation; gap in test coverage
- Goal: 80%+ mutation score indicates strong tests
- Tools: PIT (Java), Stryker (JavaScript), Mutant (Ruby)
Instructions
- Run Baseline: Execute test suite; note coverage
- Inject Mutations: Tool modifies code (< becomes <=, true becomes false)
- Run Tests: Check if tests catch each mutation
- Identify Survivors: Which mutations did tests miss? Why?
- Strengthen Tests: Add tests for survivor scenarios
- Repeat: Run mutation testing again; iterate until satisfied
Anti-Patterns
- Ignoring mutation testing; high code coverage doesn't guarantee good tests
- Trying to reach 100% mutation score; diminishing returns after 80%
- Adding tests just to kill mutations; tests should be meaningful
- Slow mutation testing blocking development; run on critical paths
- Not understanding why mutations survived; just adding tests blindly doesn't help
Further Reading
- Richard Lipton, "The Fault-Based Testing (FBT) Paradigm"
- PIT documentation (Java mutation testing)
- Stryker documentation (JavaScript/TypeScript mutation testing)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mutation-testing?
Measuring test quality by mutating code and checking if tests catch mutations.
Как установить скилл mutation-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mutation-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…