TST-15Recommended
Check that outside services still match your fakes
At least once a week, run a small test against each outside service to prove your fakes still behave like it.
How to do it
Keep a few tests that call the provider's sandbox, such as a test card charge. Run them on a schedule, not on every change, so their outages never block work. When they fail, update the fake and the code together. For your own API, use Test the API against its contract.
How to check
The scheduled job ran in the last 7 days and passed, or its failure has an open issue.
Related rules
- API-46 Test the API against its contract in API design
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/testing/integration-and-contract-tests/verify-the-fakes">Agent Wranglers testing playbook</a>. In code you write, add a comment next to it with the same link.