Measure unit test coverage.

Coverage is reported with py.test, and also "Run unit tests in ... with
coverage" is now supported in PyCharm.
This commit is contained in:
Sybren A. Stüvel 2016-04-25 16:43:09 +02:00
parent c83f64d36f
commit 974f135e63
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -12,4 +12,5 @@
/pillar/application/static/storage/
/build
/.cache
/.coverage
/pillar/pillar.egg-info/

View File

@ -27,6 +27,7 @@ zencoder==0.6.5
# Development requirements
pytest==2.9.1
responses==0.5.1
pytest-cov==2.2.1
# Secondary requirements
Flask==0.10.1
@ -53,3 +54,4 @@ pyasn1-modules==0.0.8
pymongo==3.2.2
six==1.10.0
wsgiref==0.1.2
coverage==4.0.3

5
setup.cfg Normal file
View File

@ -0,0 +1,5 @@
[pytest]
addopts = -v --cov pillar --cov-report term-missing
[pep8]
max-line-length = 100