Automated testing with pytest
Software tests are automatically run each time a change to flux-data-qaqc
is made on the master branch in GitHub using this GitHub Actions workflow. Automated tests help spot potential bugs early so that they be identified and corrected efficiently resulting in an improved user experience.
Running tests manually
pytest
is required to run software tests that are provided. You can install pytest
with PIP:
pip install pytest
The tests utilize the example flux input data and flux-data-qaqc
configuration files that are provided with the software whether installed from PyPI or GitHub. These files can be found here.
To run the tests, navivgate to the root directory of the source code (from the command line or shell) and run pytest:
pytest
This will print out basic test results, usage of pytest
plugins and command line options can be used for getting more information out of the tests.