Changes for doc/sdk_developers.md: 9 added lines, 1 removed line.
Original line number
Diff line number
Diff line
@@ -89,7 +89,15 @@ make unit_tests
It runs `python -m pytest test/unit` with the Python of the repository `venv` if it exists, or `python3` otherwise (choose another one with `make unit_tests PYTHON=/path/to/python`). Running it as `python -m pytest` from the repository root makes the tests use the code of the repository, and not an `opencapif_sdk` installed in your environment.
The unit tests also run in the staging CI pipeline (`staging_unit_tests` job), which installs `installation/requirements.txt` in a `venv` and runs `make unit_tests`.
To run them without a local Python environment, only with Docker:
```console
make unit_tests_docker
```
It builds a Docker image with the dependencies of `installation/requirements.txt`, the SDK code and the tests (`test/Dockerfile`), and runs the unit tests in a container. The image uses Python 3.13 by default; set `PYTHON_IMAGE` to use another version, e.g. `make unit_tests_docker PYTHON_IMAGE=python:3.9-slim` (with Python 3.12 or earlier, the tests that need TLS-PSK are skipped).
The unit tests also run in the staging CI pipeline (`staging_unit_tests` job) with `make unit_tests_docker`, so the runner only needs Docker.
The other tests of the `test` folder are integration tests that need a running OpenCAPIF.