forked from archive/andrewferrier_email2pdf
Add code coverage checker - closes #43
This commit is contained in:
parent
d35dd05d18
commit
23e4da4d66
3 changed files with 11 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
*.deb
|
||||
cover/
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
5
Makefile
5
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue