Skip to content

Commit fcd43a7

Browse files
authored
Merge pull request #458 from illesguy/update-testing-instructions
update testing instructions
2 parents 635bc9e + 8a0de36 commit fcd43a7

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

CONTRIBUTING.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ Testing
1212
If you fix a bug, you should add a test that exposes the bug (to avoid future
1313
regressions), 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+
1520
To 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

4751
The resulting HTML files will be written to the ``htmlcov/`` directory.
4852

4953
You 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/

0 commit comments

Comments
 (0)