AI assistants write tests quickly, and most of what they write passes. That is the problem: a suite that passes on a buggy app is worse than no suite, because it makes people stop looking. What separates a useful generated suite from a decorative one is usually not the assistant. It is what the tester put in the prompt.
Three things only a tester tends to say:
- The rule: what the feature must do, from the spec, including limits such as a minimum order.
- The oracle: the exact result a test must assert, worked out from the rule, not "check it works".
- The negative cases: what must be rejected or must fail.
The assistant in this lesson is scripted: it returns recorded suites chosen by which of those three your prompt contains. A real assistant varies more, but responds to the same things.
Your task
- Send the vague prompt below to the assistant and Run what comes back. Notice how green it is.
- Rewrite the prompt with the rule, the oracle and the negative cases from the ShopLab spec. Put the suite it returns in the editor and Run it.
- Paste your final prompt in the box and Submit. Your prompt is checked, and your suite runs against hidden ShopLab builds.