Showing the changes to python (1 of 3 files). Show all
Unified · Split
| @@ -35,17 +35,18 @@ sounds. · 34 unmodified lines | |||
| 35 | Testing the Python module | 35 | Testing the Python module |
| 36 | ------------------------- | 36 | ------------------------- |
| 37 | 37 | ||
| 38 | Python tests are in `python/tests` and use the [nose2 python package][nose2]. | 38 | Python tests are in `python/tests` and use [pytest]. |
| 39 | 39 | ||
| 40 | To run the all the python tests, use the script: | 40 | To run the all the python tests: |
| 41 | 41 | ||
| 42 | $ ./python/tests/run_all_tests | 42 | $ cd aubio |
| 43 | $ pytest | ||
| 43 | 44 | ||
| 44 | Each test script can also be called one at a time. For instance: | 45 | Each test script can also be called one at a time. For instance: |
| 45 | 46 | ||
| 46 | $ ./python/tests/test_note2midi.py -v | 47 | $ pytest -v python/tests/test_note2midi.py |
| 47 | 48 | ||
| 48 | [nose2]: https://github.com/nose-devs/nose2 | 49 | [pytest]: https://pytest.org |
| 49 | 50 | ||
| 50 | Install in a virtualenv | 51 | Install in a virtualenv |
| 51 | ----------------------- | 52 | ----------------------- |