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

test-coverage

하는 일

이 스킬은 소프트웨어 프로젝트의 테스트 커버리지 기준을 설정합니다. 코드가 계속 충분히 테스트되기를 원하는 개발자와 팀 리더를 위한 스킬입니다.

사용하는 경우

  • ✓프로젝트에 최소 테스트 커버리지 규칙이 없을 때.
  • ✓커버리지 설정은 있지만 빌드 중에 확인되지 않을 때.
  • ✓커버리지가 기준 아래로 떨어지면 빌드가 실패하기를 팀이 원할 때.

스킬 링크

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

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

사용 방법

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

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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/test-coverage/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분.

작동 방식

에이전트는 테스트 도구에 최소 커버리지 수치를 설정하고 빌드에 검사를 추가합니다. 커버리지가 기준보다 낮아지면 빌드가 실패합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Maintain test coverage thresholds

Coverage thresholds prevent code quality from degrading over time by failing builds when test coverage drops below safe levels.

Quick Reference

  • Set global thresholds: 70% branches, 80% lines/functions/statements
  • Apply stricter thresholds (90%+) to critical utility code
  • Exclude generated code, type definitions, and config files
  • Focus on meaningful coverage—test behavior, not just lines

Check

Review this project's test coverage configuration to ensure minimum thresholds are set and enforced in CI/CD.

Fix

Configure coverage thresholds in Jest, Vitest, or your testing framework, and add coverage checks to CI/CD.

Explain

Explain how to set up test coverage thresholds and what coverage levels are appropriate for different types of code.

Code Review

Review tests, CI workflows, and enforcement points related to Maintain test coverage thresholds. Flag exact gaps where the rule is not automatically verified or where failures do not block regressions.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/testing/test-coverage

자주 묻는 질문

이 스킬은 어떤 커버리지 수준을 권장하나요?

분기 커버리지는 약 70퍼센트, 라인, 함수, 구문 커버리지는 약 80퍼센트를 제안하고, 중요한 코드에는 더 엄격한 기준을 권장합니다.

어떤 도구와 함께 동작하나요?

이 스킬은 Jest, Vitest 등 여러 테스트 프레임워크를 언급합니다.

모든 줄을 테스트해야 하나요?

아니요. 이 스킬은 숫자를 채우는 것보다 동작을 확인하는 의미 있는 테스트에 집중하라고 말합니다.

상세 정보

작성자의 원본 설명

Use when reviewing CI coverage, automated checks, or test strategy related to Maintain test coverage thresholds. Focus on whether the rule is continuously verified, not just documented.

repo: thedaviddias/Front-End-Checklist

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬