Test coverage

From Luohaothu/everything-codex · View interactive version

Test coverage is an AI agent skill from the GitHub repository Luohaothu/everything-codex. Analyze test coverage, identify files below 80% threshold, and generate missing tests. Supports unit, integration, and E2E tests.

How to use this skill

Skill file

Test Coverage Skill

Analyze test coverage and generate missing tests to reach 80%+ coverage.

Workflow

  1. Run tests with coverage reporting
  2. Analyze coverage report
  3. Identify files below 80% threshold
  4. For each under-covered file:
  1. Verify new tests pass
  2. Show before/after coverage metrics

Focus Areas

Coverage Commands

JavaScript/TypeScript

npm test -- --coverage
pnpm test -- --coverage

Go

go test -cover ./...
go test -coverprofile=coverage.out ./...
go tool cover -func=coverage.out

Python

pytest --cov=. --cov-report=term-missing

Coverage Targets

| Code Type | Target |

|-----------|--------|

| Critical business logic | 100% |

| Public APIs | 90%+ |

| General code | 80%+ |

| Generated/vendor code | Exclude |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.