AGENT SKILL

coverage-boost

Generate tests to hit uncovered code paths

License 许可
MIT
最近更新
2026-04-05
Stars
★ 7
Forks
1

01 前言 Front Matter

name
coverage-boost
description
Generate tests to hit uncovered code paths

02 资源文件 1

03 SKILL.md 正文

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.


Built by LXGIC Studios

04 同仓库更多 Skills