Tests & QA21 categories
Define contract tests between two services
Two services that integrate fine in staging and break on deploy day.
Longcontractintegrationservices
Define the contract between the consumer and provider described below. 1. State the contract explicitly: endpoints, request shapes, response shapes, status codes, and the error responses the consumer actually handles. 2. Separate what the consumer genuinely depends on from what the provider happens to return. The contract is only the former, and getting this wrong is how contracts become brittle. 3. Write the consumer-side expectations as test code in my framework. 4. Write the provider-side verification, including the states the provider must be able to set up. 5. List the changes the provider could make that would break this contract, and those that would be safe. 6. Describe how the contract is verified in CI, and what should block a deploy. Consumer and provider details:
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.
Beyond unit tests. Manual QA, exploratory charters, accessibility, load, and contracts between services.
Related prompts
Write exploratory testing chartersAn hour of manual testing on a new feature, and you want it structured.Accessibility test pass on a featureBefore shipping any interface, not after someone files a complaint.Design performance test scenariosBefore a launch where load is a real unknown.Write a manual QA script someone else can runHanding regression testing to a person who did not build the feature.Convert a manual test to an automated oneA manual check that has been run by hand thirty times.What breaks at scale?Code written against a small, friendly test fixture.
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