Skip to main content
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:
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.