DOC: Use coverage report and optionally coverage html

pull/1104/head
Lee Clemens 2015-07-07 20:03:34 -04:00
parent 4aff396b05
commit b1022a4fe4
1 changed files with 4 additions and 1 deletions

View File

@ -56,9 +56,12 @@ following (note: on Debian-based systems, the script is called
`python-coverage`):: `python-coverage`)::
coverage run bin/fail2ban-testcases coverage run bin/fail2ban-testcases
coverage report
Optionally:
coverage html coverage html
Then look at htmlcov/index.html and see how much coverage your test cases And then browse htmlcov/index.html and see how much coverage your test cases
exert over the code base. Full coverage is a good thing however it may not be exert over the code base. Full coverage is a good thing however it may not be
complete. Try to ensure tests cover as many independent paths through the complete. Try to ensure tests cover as many independent paths through the
code. code.