Merge pull request #73 from gnuoy/add-test-coverage-report
Add coverage report to unit tests
This commit is contained in:
@@ -4,5 +4,6 @@ build/
|
||||
dist/
|
||||
.local
|
||||
zaza.egg-info/
|
||||
.coverage
|
||||
# Sphinx
|
||||
doc/build
|
||||
|
||||
@@ -6,6 +6,7 @@ PyYAML
|
||||
flake8>=2.2.4,<=3.5.0
|
||||
flake8-docstrings
|
||||
flake8-per-file-ignores
|
||||
coverage
|
||||
mock>=1.2
|
||||
nose>=1.3.7
|
||||
pbr>=1.8.0,<1.9.0
|
||||
|
||||
@@ -7,7 +7,7 @@ setenv = VIRTUAL_ENV={envdir}
|
||||
PYTHONHASHSEED=0
|
||||
install_command =
|
||||
pip install {opts} {packages}
|
||||
commands = nosetests {posargs} {toxinidir}/unit_tests
|
||||
commands = nosetests --with-coverage --cover-package=zaza {posargs} {toxinidir}/unit_tests
|
||||
|
||||
[testenv:py3]
|
||||
basepython = python3
|
||||
|
||||
Reference in New Issue
Block a user