Fix coverage

The current cover job is failing with the following error message
> manage.py test: error: unrecognized arguments: --cover-xml

Change-Id: I554300931d241fb82d4f204fd3fa120e37ee70b3
This commit is contained in:
Erik Olof Gunnar Andersson 2018-09-23 00:56:04 -07:00
parent 286e771be4
commit e651928d1c
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ commands = {posargs}
[testenv:cover]
basepython = python3
commands = {toxinidir}/manage.py test designatedashboard --settings=designatedashboard.tests.settings --cover-xml
commands =
coverage erase
coverage run {toxinidir}/manage.py test designatedashboard --settings=designatedashboard.tests.settings {posargs}
coverage xml --include 'designatedashboard/*' -o cover/coverage.xml
coverage html --include 'designatedashboard/*' -d cover
[testenv:docs]
basepython = python3