Add tox "coverage" target

Change-Id: I577d62e016a550ea30671837a0a426165984e982
changes/82/87382/9
Marc Abramowitz 9 years ago
parent 564953609c
commit b33ac74828

4
.gitignore vendored

@ -13,3 +13,7 @@ output
etc/jenkins_jobs.ini
dist/*
doc/build/*
jenkins_jobs/versioninfo
.coverage
cover/
jenkins-job-builder

@ -34,6 +34,13 @@ every module. To run the unit tests, execute the command::
* Note: View ``tox.ini`` to run tests on other versions of Python.
Test Coverage
-------------
To measure test coverage, execute the command::
tox -e cover
Configuration File
------------------

@ -1,3 +1,3 @@
PyYAML
python-jenkins
pbr>=0.5.21,<1.0
pbr>=0.8.2,<1.0

@ -1,4 +1,5 @@
hacking>=0.5.6,<0.8
coverage>=3.6
discover
fixtures
python-subunit

@ -15,6 +15,13 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:cover]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py test --coverage --coverage-package-name=jenkins_jobs
coverage report
[testenv:pep8]
commands = flake8

Loading…
Cancel
Save