Back to prompt library

Fill in the few tests that matter most

You know which tests are missing but never have time to write them: have the agent add the 3 that cover the most risk.

When to use it When you have spare usage and want a bit more protection for your code

What you get

3 new tests, plus a summary of what each one proves.

Before you start

  • Tests already run in the project
  • You can review and commit the new test files

Steps

  1. Find the 3 highest-risk behaviors that no test covers
  2. Write one test for each
  3. Run the tests to confirm they pass
  4. List the new tests and what they prove

Deliverables

  • New test files or cases
  • Test run results
  • List of suspected bugs

Done when

  • All new tests pass
  • No application code was changed
  • Suspected bugs are recorded, not fixed on its own

Paste this into your agent

Find the 3 highest-risk behaviors in this project that no test covers (look first at recent changes, critical paths and error handling), add one test for each, and run them to confirm they pass. Only add tests; don't change application code. If you spot a suspected bug, put it in the summary and don't fix it. Stop after those 3, and finish by listing which tests you added and what each one proves.