This directory contains the unit tests for methods and functions in pathpy. The testing framework pytest is required to run the tests.
To run the test suite (without slow tests) run
$ pytest testsSlow functions can be decorated with slow to mark them
as skippable if you require only a quick check.
To run all tests add the flag --runslow:
$ pytest --runslowTo compute a coverage report of the tests you need to install
coverage.py
as well as its pytest integration
pytest-cov
$ pytest tests/ --runslow --cov=pathpy --cov-report htmlwhich will create an html coverage report in the same directory.