# Unit tests

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/unit-tests

Set up a test framework and write unit tests for the core logic, so regressions are caught before they ship.

Usually comes after: [Runnable service](https://gradus.kazet.blog/tree/cloud-application/step/runnable-service).

Leads to: [Centralized error handling](https://gradus.kazet.blog/tree/cloud-application/step/error-handling), [Test doubles & fixtures](https://gradus.kazet.blog/tree/cloud-application/step/test-doubles).

## Prompt for your AI assistant

```
Set up a unit testing framework for this project and write tests covering the core business logic, aiming for meaningful coverage over the critical paths.
```

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