Permalink
Browse files

DOC: Add instructions for running the test suite

  • Loading branch information...
1 parent 0865a31 commit f3e63e4e835536258d5d641b7f604c39be39c91d @ericdill ericdill committed Jul 12, 2015
Showing with 12 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +9 −0 CONTRIBUTING.txt
View
@@ -99,3 +99,6 @@ generated/
MANIFEST
deb_build
rtr.cvs
+
+# pytest parallel
+.coverage*
View
@@ -49,3 +49,12 @@ Please use the following guidelines when preparing changes:
QObject subclasses that implement new signals should also describe
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.
+

0 comments on commit f3e63e4

Please sign in to comment.