1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
.. _dev-testing:
Testing
=======
Continous integration with Travis-CI
------------------------------------
The project is using `Travis-CI <https://travis-ci.org/PyWavelets/pywt>`_ service
for continuous integration and testing.
If you are submitting a patch or pull request please make sure it
does not break the build.
Running tests locally
---------------------
Tests are implemented with `pytest`_, so use one of:
$ pytest --pyargs pywt -v
There are also older doctests that can be run by performing the following from
the root of the project source.
$ python pywt/tests/test_doc.py
$ cd doc
$ make doctest
Additionally the examples in the demo subfolder can be checked by running:
$ python util/refguide_check.py
Note: doctests require `Matplotlib`_ in addition to the usual dependencies.
Running tests with Tox
----------------------
There's also a config file for running tests with `Tox`_ (``pip install tox``).
To for example run tests for Python 3.5 and 3.6 use::
tox -e py35,py36
For more information see the `Tox`_ documentation.
.. _pytest: https://pytest.org
.. _Tox: https://tox.readthedocs.io/en/latest/
.. _Matplotlib: https://matplotlib.org
|