Slash Command
Community

/test-coverage

Install
1
Install the plugin
$
npx claudepluginhub haniakrim21/everything-claude-code

Want just this command?

Then install: npx claudepluginhub u/[userId]/[slug]

Description

Analyze test coverage, identify files below the 80% threshold, and generate missing unit, integration, and E2E tests to reach the coverage goal.

Command Content

Test Coverage

Analyze test coverage and generate missing tests:

  1. Run tests with coverage: npm test --coverage or pnpm test --coverage

  2. Analyze coverage report (coverage/coverage-summary.json)

  3. Identify files below 80% coverage threshold

  4. For each under-covered file:

    • Analyze untested code paths
    • Generate unit tests for functions
    • Generate integration tests for APIs
    • Generate E2E tests for critical flows
  5. Verify new tests pass

  6. Show before/after coverage metrics

  7. Ensure project reaches 80%+ overall coverage

Focus on:

  • Happy path scenarios
  • Error handling
  • Edge cases (null, undefined, empty)
  • Boundary conditions
Stats
Stars1
Forks1
Last CommitFeb 26, 2026

Other plugins with /test-coverage