본문으로 건너뛰기
Skillpedia
테스트75k · #2945

mutation-testing

하는 일

이 스킬은 코드에 작은 변경을 가해 테스트가 실패하는지 보는 뮤테이션 테스트를 설정하고 검토합니다. 테스트가 중요한 로직에서 충분히 강한지 알고 싶은 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓테스트가 실제 버그를 잡는지 확인해 달라고 요청할 때.
  • ✓커버리지 수치는 높은데 테스트가 의미 있는 결과를 확인하는지 의심스러울 때.
  • ✓중요한 비즈니스 로직 모듈 하나에 테스트 개선을 집중하고 싶을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mutation-testing/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mutation-testing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2945
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬