-
Notifications
You must be signed in to change notification settings - Fork 10
Running Unit Tests
Luke Parkinson edited this page Aug 22, 2022
·
4 revisions
The two recommended python test frameworks we support are pytest
and unittest
.
We have an action workflow for running unit tests to check for regressions on pull requests as part of our CI strategy. The packages for the testing are configured by the same environment.yml
file used for production and development.
To run all unit tests using unittest:
- Run unittest in the project root:
# From the root directory of the project python -m unittest
To run all unit tests using pytest:
- Begin by installing pytest:
pip install pytest
- Run pytest in the project root:
# From the root directory of the project python -m pytest