Merge pull request #185 from ericdill/add-test-to-contrib
DOC: Add instructions for running the test suite
This commit is contained in:
commit
c98ded502c
3
.gitignore
vendored
3
.gitignore
vendored
@ -99,3 +99,6 @@ generated/
|
|||||||
MANIFEST
|
MANIFEST
|
||||||
deb_build
|
deb_build
|
||||||
rtr.cvs
|
rtr.cvs
|
||||||
|
|
||||||
|
# pytest parallel
|
||||||
|
.coverage*
|
||||||
|
@ -49,3 +49,12 @@ Please use the following guidelines when preparing changes:
|
|||||||
|
|
||||||
QObject subclasses that implement new signals should also describe
|
QObject subclasses that implement new signals should also describe
|
||||||
these in a similar table.
|
these in a similar table.
|
||||||
|
|
||||||
|
* Setting up a test environment.
|
||||||
|
|
||||||
|
Tests for a module should ideally cover all code in that module,
|
||||||
|
i.e., statement coverage should be at 100%.
|
||||||
|
|
||||||
|
To measure the test coverage, install py.test, pytest-cov and pytest-xdist.
|
||||||
|
Then run 'py.test --cov -n 4' to run the test suite with coverage on 4 cores.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user