Skip to content

Testing

Sebastiano Ferraris edited this page Feb 6, 2019 · 2 revisions

Unittest is focused on the methods acting on numpy arrays and nibabel images, below the facade. To run the test, install the testing libraries with

pip install pytest-cov
pip install coverage
pip install coverage-badge

followed by:

pytest --cov --cov-report html
coverage html  # optional to create the coverage report
open htmlcov/index.html  # optional to open the coverage report
coverage-badge -f -o coverage.svg  # optional to update the coverage badge
Clone this wiki locally