File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,18 @@ Testing
1212If you fix a bug, you should add a test that exposes the bug (to avoid future
1313regressions), if you add a feature, you should add tests for it as well.
1414
15+ Set up local environment with the following commands::
16+
17+ pip install numpy pytest "cffi>=1.0"
18+ python soundfile_build.py
19+
1520To run the tests, use::
1621
17- python setup.py test
22+ python -m pytest
1823
19- This uses py.test _; if you haven't installed it already, it will be downloaded
20- and installed for you.
24+ This uses pytest _;
2125
22- .. _ py.test : http://pytest.org/
26+ .. _ pytest : http://pytest.org/
2327
2428.. note :: There is a `known problem`_ that prohibits the use of file
2529 descriptors on Windows if the libsndfile DLL was compiled with a different
@@ -41,14 +45,14 @@ Just install it with::
4145
4246... and run it with::
4347
44- coverage run --source soundfile.py -m py.test
48+ coverage run --source soundfile -m pytest
4549 coverage html
4650
4751The resulting HTML files will be written to the ``htmlcov/ `` directory.
4852
4953You can even check `branch coverage `_::
5054
51- coverage run --branch --source soundfile.py -m py.test
55+ coverage run --branch --source soundfile -m pytest
5256 coverage html
5357
5458.. _coverage.py : http://nedbatchelder.com/code/coverage/
You can’t perform that action at this time.
0 commit comments