Testing

Tests are performed using Pytest and Syrupy.

Syrupy is used to compare output to previous expected output states.

SetUp

Install required dependecies using

pip install -r requirements-dev.txt

For conformer tests, optional dependencies are also required and can be installed with

pip install -r requirements-optional.txt

Running Tests

To run the tests, execute the following command in the massdash/ base folder:

python -m pytest --snapshot-warn-unused test/

For verbose output:

python -m pytest --snapshot-warn-unused -v test/

To update snapshots:

python -m pytest --snapshot-update test/

Note

CI github testing sometimes fails on macOS, failing to find pytest. If this occurs, please rerun the command.