Tests & QA21 categories
Five tests worth writing
A change you want covered without writing forty tests.
Here is a change I am about to ship. Give me the five tests worth writing for it, ranked by how likely each is to catch a real regression. Say which level each belongs at: unit, integration, or end to end. Skip anything that only tests the framework. Change:
Making it yours
- Paste your own material where the prompt asks for it. Everything above that line is instruction, not content.
- Delete any rule that does not apply to you. A shorter prompt that fits beats a thorough one that does not.
- If the answer comes back vague, add a line saying what you do not want. Constraints work better than encouragement.
Finding coverage gaps. Working out which behaviours, edge cases and error paths nothing currently checks.
Related prompts
Audit this suite for untested behaviourYou wrote tests and want to know what you did not think of.Write test cases from acceptance criteriaA story is ready for QA and the criteria need turning into concrete checks.Find property-based test ideasCode with a large input space where example tests only scratch it.Test the error pathsWhen every existing test exercises the happy path.Brainstorm edge cases for this featureBefore writing tests, to widen the input space you are imagining.What is untested here?Code with tests you suspect are not covering much.
Keep this one
Phrasery saves prompts with a right-click and puts them back the same way. Add this to your own library in one click.
Add to your browser โ free