Debian Codegraph @

doc/source/dev/testing.rst

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
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 Current build status is:
13
14 .. image::
15 https://secure.travis-ci.org/PyWavelets/pywt.png?branch=master
16 :alt: Build Status
17 :target: https://secure.travis-ci.org/PyWavelets/pywt
18
19 If you are submitting a patch or pull request please make sure it
20 does not break the build.
21
22
23 Running tests locally
24 ---------------------
25
26 Tests are implemented with `pytest`_, so use one of:
27
28 $ pytest --pyargs pywt -v
29
30 There are also older doctests that can be run by performing the following from
31 the root of the project source.
32
33 $ python pywt/tests/test_doc.py
34 $ cd doc
35 $ make doctest
36
37 Additionally the examples in the demo subfolder can be checked by running:
38
39 $ python util/refguide_check.py
40
41 Note: doctests require `Matplotlib`_ in addition to the usual dependencies.
42
43
44 Running tests with Tox
45 ----------------------
46
47 There's also a config file for running tests with `Tox`_ (``pip install tox``).
48 To for example run tests for Python 3.7 and 3.8 use::
49
50 tox -e py37,py38
51
52 For more information see the `Tox`_ documentation.
53
54
55 .. _pytest: https://pytest.org
56 .. _Tox: https://tox.readthedocs.io/en/latest/
57 .. _Matplotlib: https://matplotlib.org