Skip to content

Testing pysteps

Andres Perez Hortal edited this page Mar 14, 2019 · 4 revisions

Testing

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

Installation tests

After installation, you can launch the test suite from any directory by running::

 pytest --pyargs pysteps

Source code tests

The source code can be tested in-place using the pytest command on the root of the pysteps source directory. E.g.::

  pytest -v --tb=line

For developers, if you want to test your working copy of the pysteps library, you need to compile the pysteps extensions in-place before running the tests. From the root pysteps folder run:

  python setup.py build_ext -i
Clone this wiki locally