Coverage Boost

Generate tests to hit uncovered code paths

lxgicstudios 129ebf1 6 files · 52.6 KB Updated

File contents

Coverage Boost

Your coverage is at 67% and PM wants 80%. This tool finds uncovered lines and generates tests for them.

Quick Start

npx ai-coverage-boost ./src/utils/helpers.ts

What It Does

  • Analyzes existing test coverage
  • Identifies uncovered code paths
  • Generates targeted tests for gaps
  • Focuses on edge cases you missed

Usage Examples

# Boost coverage for a file
npx ai-coverage-boost ./src/utils/validators.ts

# Target a specific function
npx ai-coverage-boost ./src/api.ts --function processOrder

# Generate Jest tests
npx ai-coverage-boost ./src --framework jest

What It Generates

  • Unit tests for uncovered branches
  • Edge case tests
  • Error handling tests
  • Boundary condition tests

Requirements

Node.js 18+. OPENAI_API_KEY required. Existing coverage report helps.

License

MIT. Free forever.

lxgicstudios/ai-coverage-boost/tree/main/ commit 129ebf1dac

Frequently asked questions

npx skillmds@latest add lxgicstudios/coverage-boost