Install coverage and fix command line to call

Ensure the coverage package is installed and fix the coverage command
line used from tox to cover the correct package name for the test
environment while excluding the unit tests.

Change-Id: Ieaca81e65ed2dbf7e7070be18a416f1858b48bb4
This commit is contained in:
Darragh Bailey 2016-02-03 12:39:15 +00:00
parent 246439b757
commit 81ad238e9b
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ loremipsum
mock!=1.1.1,<=1.3.0
Sphinx>=1.1.2,<1.2
discover
coverage>=3.6 # Apache-2.0
fixtures>=0.3.14
python-subunit
testrepository>=0.0.17

View File

@ -16,7 +16,8 @@ commands = flake8
[testenv:cover]
commands =
python setup.py testr --coverage
python setup.py test --coverage --coverage-package-name=git_upstream
coverage report --omit=git_upstream/tests/**
[testenv:docs]
commands = python setup.py build_manpage