Test doubles & fixtures
A step of the Cloud application tree on Gradus, in the Testing & resilience area: Tests, errors, SLOs.
Create fixtures, factories and fakes for external services, so tests run fast and without the network.
Usually comes after: Unit tests.
Leads to: Integration & end-to-end tests, API schema & contract tests.
Prompt for your AI assistant
Create test fixtures and factory helpers for the core domain objects and fakes for external services, and refactor the existing tests to use them.This is https://gradus.kazet.blog/tree/cloud-application/step/test-doubles as plain HTML. In a browser the page also lets you mark the step forged and copy a message for your AI assistant.