Đang tải…
Đang tải…
Adds meaningful tests pass after pass until the suite reaches a target coverage threshold and stays green.
npx claude-code-templates@latest --loop engineering/test-coverage-loopLoop Engineering — a recurring goal that drives the agent to grow real test coverage incrementally instead of in one risky batch.
Raise test coverage toward a defined target by adding meaningful tests for the least-covered, highest-risk code first — never gaming the metric with empty assertions.
Suggested interval: 20m.
/loop 20m "Measure current test coverage. Pick the lowest-covered, highest-risk module and add real, behavior-focused tests for it. Re-run the suite. Continue until coverage is at least 90% with everything passing."
test-automator + /generate-tests./test-coverage; if the suite is green and coverage rose, continue; if flaky, fix before moving on.Coverage ≥ target, full suite passes, and no newly-added test is flaky.
agent:performance-testing/test-automator — authors the tests.command:testing/test-coverage — measures progress each pass.command:testing/generate-tests — scaffolds new test cases.Starting at 61%, the loop targets the untested error branches of the payment module first, climbing a few points per pass until it crosses 90% with a green suite.