test_python: export PYTHONPATH=$(PYDESTDIR)/$(LIBDIR)
test_python: local_dylib
# run test with installed package
- # ./python/tests/run_all_tests --verbose
- # run with nose2, multiple processes
$(NOSE2)
clean_python:
Python tests
------------
-A number of `python tests`_ are provided. To run them, use
-``python/tests/run_all_tests``.
-
-.. _demo_filter.py: https://github.com/aubio/aubio/blob/master/python/demos/demo_filter.py
-.. _python tests: https://github.com/aubio/aubio/blob/master/python/tests
+A number of python tests are provided. To run them, use ``pytest`` from the
+aubio source tree.
Testing the Python module
-------------------------
-Python tests are in `python/tests` and use the [nose2 python package][nose2].
+Python tests are in `python/tests` and use [pytest].
-To run the all the python tests, use the script:
+To run the all the python tests:
- $ ./python/tests/run_all_tests
+ $ cd aubio
+ $ pytest
Each test script can also be called one at a time. For instance:
- $ ./python/tests/test_note2midi.py -v
+ $ pytest -v python/tests/test_note2midi.py
-[nose2]: https://github.com/nose-devs/nose2
+[pytest]: https://pytest.org
Install in a virtualenv
-----------------------