Testing pySTEPS

The pysteps distribution includes a small test suite for some of the modules. To run the tests the pytest package is needed. To install it, in a terminal run:

pip install pytest

Test an installed package

After the package is installed, you can launch the test suite from any directory by running:

pytest --pyargs pysteps

Test from sources

Before testing the package directly from the sources, we need to build the extensions in-place. To do that, from the root pysteps folder run:

python setup.py build_ext -i

Now, the package sources can be tested in-place using the pytest command on the root of the pysteps source directory. E.g.:

pytest -v --tb=line