Files
azionelab/docs/testing.md

648 B

Testing

Describe how tests are executed.

All tests should run inside Docker containers.

Canonical test command

docker compose --env-file .env.example -f infra/docker/compose.yml config
docker compose --env-file .env.example -f infra/docker/compose.yml run --rm --build backend python manage.py test

Test categories

Describe applicable categories:

  • unit tests;
  • integration tests;
  • linting;
  • formatting checks;
  • Ansible syntax checks;
  • Docker/Compose validation;
  • smoke tests.

Current coverage

  • Docker Compose configuration validation;
  • Django backend unit tests, including the initial health endpoint test.