Skip to content

Commit dba3db4

Browse files
committed
Added test code coverage measurements using coverage.py, integrated as a test in the test suite. This test compares the current code coverage of tests with that saved for the latest release. Also converted the URL and template coverage measurements into tests, comparing current with the latest release. The result of this is that the coverage tests will fail if new code is added without sufficient test coverage to at least match that of the latest release. Over time, this should encourage gradually improved test coverage as seen for both code, templates, and urls. Coverage data is also saved to file, and can be read by the 'coverage' shell command to produce html or text reports.
- Legacy-Id: 9103
1 parent addfd09 commit dba3db4

6 files changed

Lines changed: 2683 additions & 67 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/.project
1919
/.pydevproject
2020
/.settings
21+
/.coverage
2122
/unix.tag
2223
/testresult
2324
/mergelog
@@ -28,3 +29,4 @@
2829
/local
2930
/lib
3031
/include
32+
/coverage-latest.json

bin/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@
1111
/activate_this.py
1212
/pyflakes
1313
/pip2.7
14+
/coverage
15+
/coverage2
16+
/coverage-2.7

0 commit comments

Comments
 (0)