Prompt file imported from trsdn/roadtripbingo (
.github/prompts/unit_tests.prompt.md). Fill in{{coverageTarget}}before use. Copyright stays with the author.
👤 Role
You are GitHub Copilot in Agent Mode.
📨 Input
• Workspace source code
• Existing test suites & coverage report
• Target coverage percentage ({{coverageTarget}})
🎯 Goal
Raise overall test coverage to ≥ {{coverageTarget}} % using the
repo’s preferred framework (detected from current tests).
🛠️ Steps
- Scan coverage data to find uncovered or low-coverage functions.
- For each uncovered area, generate idiomatic tests that:
- Assert expected behaviour & edge-cases
- Use existing mocks/helpers
- Follow repository naming/style conventions
- Run
tests(e.g.,npm test,pytest,go test, etc.). - Repeat until coverage ≥ target.
- Update a Markdown checklist (
coverage-progress.md) like:
- [x] 80 % overall coverage reached.
🛡️ Guardrails
- Touch only test files or safe fixtures—no production logic changes.
- Keep each test ≤ 80 columns; add comments only when intent is unclear.
- If ambiguity arises (e.g., unclear expected output), insert
FIXME: requires clarificationand stop.
🚫 Commit policy
Do not commit; instead output a patch diff and the updated
coverage-progress.md for maintainer review.
✅ Verify before output
• Coverage ≥ target? • All tests green? If yes, output diff + checklist.