mutation-testing
하는 일
이 스킬은 코드에 작은 변경을 가해 테스트가 실패하는지 보는 뮤테이션 테스트를 설정하고 검토합니다. 테스트가 중요한 로직에서 충분히 강한지 알고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓테스트가 실제 버그를 잡는지 확인해 달라고 요청할 때.
- ✓커버리지 수치는 높은데 테스트가 의미 있는 결과를 확인하는지 의심스러울 때.
- ✓중요한 비즈니스 로직 모듈 하나에 테스트 개선을 집중하고 싶을 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mutation-testing/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“코드 커버리지는 높은데 테스트가 실제 버그를 잡는지 확신이 없어요. 뮤테이션 테스트를 설정해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 한 모듈에 대해 Stryker를 설정하고 실행해 작은 변경을 주입한 뒤, 테스트가 놓친 변경의 목록을 보여 줍니다. 그다음 그 변경들이 잡히도록 테스트를 개선합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Use mutation testing to measure how well tests detect bugs
A codebase can have 90% line coverage and still ship critical bugs if tests only execute code without asserting meaningful outcomes. Mutation testing reveals these gaps by proving that your tests can distinguish correct code from subtly broken code — the standard that actually matters in production.
Quick Reference
- Code coverage tells you which lines were executed; mutation score tells you which bugs were caught
- Stryker injects small code changes (mutations) and checks whether tests fail — if they don't, the tests are weak
- Aim for 80%+ mutation score on critical business logic paths
- Run Stryker on a focused scope (one module) rather than the whole codebase to keep CI times manageable
Check
Assess whether this module has mutation testing configured and whether the mutation score on critical paths meets the project's quality threshold.
Fix
Set up Stryker for this module, run an initial mutation report, and improve tests to kill surviving mutants in the critical business logic paths.
Explain
Explain what mutation testing is, how Stryker works, and why mutation score is a more meaningful quality signal than code coverage alone.
Code Review
Review the Stryker configuration and mutation report to identify surviving mutants in critical code paths, and suggest test improvements to kill them.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/testing/mutation-testing
자주 묻는 질문
뮤테이션 점수와 커버리지는 무엇이 다른가요?
커버리지는 어떤 줄이 실행되었는지 보여 주고, 뮤테이션 점수는 테스트가 실제 버그를 얼마나 잡았는지 보여 준다고 스킬은 설명합니다.
왜 한 번에 한 모듈만 하나요?
CI 실행 시간을 감당할 수 있는 수준으로 유지하기 위해 범위를 좁히라고 스킬은 권장합니다.
목표 점수는 얼마인가요?
중요한 비즈니스 로직 경로에서 80% 이상을 목표로 하라고 스킬은 제안합니다.
상세 정보
작성자의 원본 설명
Use when evaluating test quality on modules containing business logic, calculation utilities, or state machines to determine whether the tests provide genuine defect detection.
인기도
- GitHub 스타
- 75k
- 순위
- #2945
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.