Unit and Functional Tests - xcist/documentation GitHub Wiki
Unit tests
Unit tests can be found in the gecatsim/tests directory. There are also two separate sub-directories named test_catsim and test_recon.
These tests are automatically run when code is checked in to the repository. To run them manually, use the pytest module in Python, e.g.:
python -m pytest test_catsim/test_GetMu.py
The command must be run from the gecatsim/tests directory. Additionally, if you want to see output produced by the program, specify the "-s" option, e.g.:
python -m pytest -s test_catsim/test_GetMy.py
Functional tests
Functional tests can be found in the gecatsim/tests/test_functional directory.