Debian Codegraph @

doc/source/dev/testing.rst

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