> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Testing and quality assurance

> Unit and integration test policies, plus the CI checks and quality gates that guard every code change in the Midaz codebase before it reaches production.

We use both unit and integration tests throughout the Midaz codebase. They check that each component functions correctly and integrates with the others.

This page covers the testing process and the policy that requires unit tests for every new feature.

## Running tests

***

To execute the tests, use the following command in your terminal:

<CodeGroup>
  ```bash command theme={null}
  make test
  ```
</CodeGroup>

This command runs the predefined test suite, which includes both unit and integration tests.

## Continuous integration

***

* **GitHub actions**: GitHub Actions runs our tests automatically as part of our continuous integration pipeline. This ensures that all code commits meet our quality standards before merging.

## Unit testing policy

***

* **New features**: As part of our testing policy, any new feature introduced in Midaz must include corresponding unit tests. This practice helps ensure that new code does not negatively impact existing functionality.
* **Test coverage**: We aim for comprehensive test coverage as a benchmark for software quality.

## Test outputs

***

* **Terminal outputs**: Test results appear directly in the terminal and give developers immediate feedback.
* **Automated test pipeline**: Tests also run automatically as part of our continuous delivery pipeline.
