# Test doubles & fixtures

A step of the [Cloud application](https://gradus.kazet.blog/tree/cloud-application) tree on Gradus, in the Testing & resilience area: Tests, errors, SLOs.

Page: https://gradus.kazet.blog/tree/cloud-application/step/test-doubles

Create fixtures, factories and fakes for external services, so tests run fast and without the network.

Usually comes after: [Unit tests](https://gradus.kazet.blog/tree/cloud-application/step/unit-tests).

Leads to: [Integration & end-to-end tests](https://gradus.kazet.blog/tree/cloud-application/step/integration-tests), [API schema & contract tests](https://gradus.kazet.blog/tree/cloud-application/step/api-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.
```

Every step of the tree: https://gradus.kazet.blog/tree/cloud-application/llms.txt
