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
12
12
If you fix a bug, you should add a test that exposes the bug (to avoid future
13
13
regressions), if you add a feature, you should add tests for it as well.
14
14
15
+ Set up local environment with the following commands::
16
+
17
+ pip install numpy pytest "cffi>=1.0"
18
+ python soundfile_build.py
19
+
15
20
To run the tests, use::
16
21
17
- python setup.py test
22
+ python -m pytest
18
23
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 _;
21
25
22
- .. _ py.test : http://pytest.org/
26
+ .. _ pytest : http://pytest.org/
23
27
24
28
.. note :: There is a `known problem`_ that prohibits the use of file
25
29
descriptors on Windows if the libsndfile DLL was compiled with a different
@@ -41,14 +45,14 @@ Just install it with::
41
45
42
46
... and run it with::
43
47
44
- coverage run --source soundfile.py -m py.test
48
+ coverage run --source soundfile -m pytest
45
49
coverage html
46
50
47
51
The resulting HTML files will be written to the ``htmlcov/ `` directory.
48
52
49
53
You can even check `branch coverage `_::
50
54
51
- coverage run --branch --source soundfile.py -m py.test
55
+ coverage run --branch --source soundfile -m pytest
52
56
coverage html
53
57
54
58
.. _coverage.py : http://nedbatchelder.com/code/coverage/
You can’t perform that action at this time.
0 commit comments