From awesome-claude-notes
Analyzes test coverage, detects frameworks like Jest/Vitest/Pytest, identifies gaps below 80%, generates missing tests, verifies improvements, and reports before/after comparison.
npx claudepluginhub loulanyue/awesome-claude-notes --plugin awesome-claude-notes# Test Coverage Analyze test coverage, identify gaps, and generate missing tests to reach 80%+ coverage. ## Step 1: Detect Test Framework | Indicator | Coverage Command | |-----------|-----------------| | `jest.config.*` or `package.json` jest | `npx jest --coverage --coverageReporters=json-summary` | | `vitest.config.*` | `npx vitest run --coverage` | | `pytest.ini` / `pyproject.toml` pytest | `pytest --cov=src --cov-report=json` | | `Cargo.toml` | `cargo llvm-cov --json` | | `pom.xml` with JaCoCo | `mvn test jacoco:report` | | `go.mod` | `go test -coverprofile=coverage.out ./...` | ##...
/test-coverageAnalyzes test coverage via detected framework (Jest, Vitest, Pytest, Rust, Java, Go), generates missing tests for <80% files, verifies improvements, and reports before/after coverage.
/test-coverageAnalyzes test coverage using tools for JavaScript, Python, Java, C#, Ruby; generates reports, identifies gaps, and recommends new tests.
/test-coverageAnalyzes test coverage using tools for JavaScript, Python, Java, C#, Ruby; generates reports, identifies gaps, and recommends new tests.
/test-coverageAnalyzes test coverage gaps in JS/TS, Python, Go, and Rust projects using vitest/jest, pytest, go test, or cargo tarpaulin, then generates and verifies tests for uncovered paths targeting 80% line coverage.
/test-coverageAnalyzes test coverage via npm/pnpm test --coverage, generates unit/integration/E2E tests for files below 80%, verifies them, and reports before/after metrics to achieve 80%+ coverage.
/test-coverageAnalyzes test coverage with Jest/Vitest/Pytest/etc., identifies files below 80%, generates tests for uncovered functions/branches/errors/edges, verifies, and reports before/after coverage.
Analyze test coverage, identify gaps, and generate missing tests to reach 80%+ coverage.
| Indicator | Coverage Command |
|---|---|
jest.config.* or package.json jest | npx jest --coverage --coverageReporters=json-summary |
vitest.config.* | npx vitest run --coverage |
pytest.ini / pyproject.toml pytest | pytest --cov=src --cov-report=json |
Cargo.toml | cargo llvm-cov --json |
pom.xml with JaCoCo | mvn test jacoco:report |
go.mod | go test -coverprofile=coverage.out ./... |
For each under-covered file, generate tests following this priority:
foo.ts → foo.test.ts (or project convention)test_create_user_with_duplicate_email_returns_409Show before/after comparison:
Coverage Report
──────────────────────────────
File Before After
src/services/auth.ts 45% 88%
src/utils/validation.ts 32% 82%
──────────────────────────────
Overall: 67% 84% ✅