Skip to content

Testing

zeyus edited this page Dec 12, 2022 · 2 revisions

Testing is currently done using pytest

The test markers are defined in pyproject.toml and can be used to create test groupings by using the @pytest.mark function decorator, e.g. @pytest.mark.data.

Once you have set up the environment, running tests is as simple as executing

pytest

from the repo root.

To run tests for a specific mark, you can use

pytest -m markername

The -s flag can be used for displaying output from print statements within tests.

Currently tests are a bit of a mess, but they should keep getting added for new code, and where key and critical workflows are identified.

Debugging

Debugging tests is possible, using various methods, for more info see: Debugging

Clone this wiki locally