Tests & QA21 categories
Audit a test suite for value versus noise
A suite that takes 20 minutes and nobody trusts the red runs.
Audit the test suite below. I want to know which tests are worth their maintenance cost. Classify each test as: - **Keep**: would catch a real bug, is clear when it fails. - **Fix**: tests the right thing badly, whether unclear, slow, or over-mocked. - **Merge**: duplicates another test's coverage. - **Delete**: asserts implementation detail, tests the framework or the language, or has never failed for a real reason. For each, one line of justification. Then: 1. Estimate what proportion of the suite is doing real work. 2. Name the slowest tests and whether their coverage justifies the time. 3. Identify coverage that would be lost by the deletions, and say whether it matters. Be willing to recommend deleting a lot. Do not hedge by keeping everything. Test suite:
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.
Test strategy. Unit or integration, what to skip, fixture design, and pruning a suite that costs too much.
Related prompts
Decide unit or integration for this codeWhen you are not sure whether to mock the boundary or cross it.Design test data for this featureWhen every test starts with forty lines of fixture setup.Decide what not to testWhen the test plan has grown beyond the time available.What should I not test?A suite that costs more to maintain than it catches.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.
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