Unit testingΒΆ

The acud developer distribution includes basic pytest-based unit testing. To run these unit tests you first need to install pytest either via conda:

conda install pytest

or pip:

pip install pytest

Once pytest is installed, set the test folder as current directory:

cd test

To run all available pytest unit test:

py.test -v

or

python -m pytest -v

To run a specific unit test:

py.test test_api.py -v

or

python -m pytest test_cli.py -v

Note that passing the validate test included in the unit test suite means that the validation process completed successfully, not that the validation tests passed. To review the validation test results, run the validate command separately through the command line or via the acud Python api.