Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 695 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 695 Bytes

Testing

We use pytest to execute the tests. For testing of plot generation, we use the mpl plugin for pytest. A range of different plots are created, and compared against the baseline images in the baseline_images subfolder.

If you have developed a new feature for the package and it is related to modifying original plots or generating new plots, you will need to generate new baseline images. To do so, run

pip install -e '.[dev]'
pytest --mpl-generate-path=nbs/tests/mpl_image_tests/baseline_images

To run the tests, go to the root of this repo directory and run

pytest dabest