Test Coverage Builder
This loop identifies gaps in test coverage and systematically writes targeted unit/integration tests to increase code coverage. It analyzes coverage reports,…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Test Coverage Builder" loop.
Goal: Increase test coverage to meet the target threshold
Max iterations: 10
Between iterations run: npm run test:coverage
Exit when: Coverage target reached (e.g., 80% line coverage)
Please run 'npm run test:coverage', analyze the coverage report, identify the most critical uncovered code paths, and write corresponding tests using the project's test framework. After each test addition, re-run the coverage check to verify improvement. Continue iterating until the coverage target (e.g., 80% line coverage) is met or max iterations are reached. Focus on meaningful test coverage, not just hitting metrics.
Self-pace this loop. After each iteration, run `npm run test:coverage` and evaluate the output, and only continue if the exit condition is not met (Coverage target reached (e.g., 80% line coverage)). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.