-
Notifications
You must be signed in to change notification settings - Fork 169
Testing pysteps
Andres Perez Hortal edited this page Mar 14, 2019
·
4 revisions
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
After installation, you can launch the test suite from any directory by running::
pytest --pyargs pysteps
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