Add tox "coverage" target

Change-Id: I577d62e016a550ea30671837a0a426165984e982
This commit is contained in:
Marc Abramowitz 2014-04-14 16:45:26 -04:00
parent 564953609c
commit b33ac74828
5 changed files with 20 additions and 1 deletions

4
.gitignore vendored
View File

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

View File

@ -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
------------------

View File

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

View File

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

View File

@ -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