[Erp5-dev] Coverage support in runUnitTest
aurel at nexedi.com
aurel at nexedi.com
Thu Dec 22 10:50:11 CET 2011
Hello,
I just added coverage (http://nedbatchelder.com/code/coverage/) support in
runUnitTest
To use it :
- make sure to have the coverage egg installed (it is now by default in the
erp5 branch of SlapOS).
- create a coveragerc file like this :
[run]
branch = True
cover_pylib = False
data_file = /tmp/coverage-test
auto_data = True
[report]
ignore_errors = True
[html]
directory = /tmp/coverage-html-test
See http://nedbatchelder.com/code/coverage/source.html#source for more info
- launch runUnitTest --coverage=/path/to/coverage/file testXXX
- open the html directory to see report
Regards
--
Aurélien Calonne
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Erp5-dev
mailing list