Add code coverage checker - closes

This commit is contained in:
Andrew Ferrier 2014-12-20 16:13:46 +00:00
parent d35dd05d18
commit 23e4da4d66
3 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
*.deb
cover/
# Byte-compiled / optimized / DLL files
__pycache__/

View file

@ -31,6 +31,11 @@ unittest_test:
stylecheck:
flake8 --max-line-length=132 .
coverage:
rm -r cover/
nosetests tests/test_Direct.py --with-coverage --cover-package=email2pdf --cover-erase --cover-html
open cover/email2pdf.html
clean:
rm -f *.deb
rm -f *.log

View file

@ -69,6 +69,11 @@ All the unit tests are in the `tests/` directory. You can run them from the
Makefile using the `unittest` or `unittest_test` targets (the second is more
verbose, and stops on failing tests).
### Code Coverage
There is a code coverage target in the Makefile. You'll need to have the
`coverage` Python module installed (`pip3 install coverage`) to run it.
### Debian
* Install all the package dependencies listed in the