Skip to content

Commit

Permalink
Add Coverage Reports To DOA
Browse files Browse the repository at this point in the history
Run coverage reports with `tox -ecover`
Creates xml and html reports like horizon
     * changed html destination to 'reports', like horizon

Closes-Bug: 1470203
Change-Id: I91b96eaf9a50e6d199e08d019ff5519a2e0574d5
  • Loading branch information
Mike Hagedorn committed Jul 1, 2015
1 parent 2034755 commit 2fcf6f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ dist
.tox
AUTHORS
ChangeLog
.coverage
reports
coverage.xml
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python openstack_auth/tests/run_tests.py {posargs}

[testenv:cover]
setenv = DJANGO_SETTINGS_MODULE=openstack_auth.tests.settings
commands =
python -m coverage erase
python -m coverage run openstack_auth/tests/run_tests.py {posargs}
python -m coverage html --include='openstack_auth/*' --omit='openstack_auth/tests/*' -d 'reports'
python -m coverage xml --include='openstack_auth/*' --omit='openstack_auth/tests/*'

[testenv:py27dj16]
commands = pip install django>=1.6,<1.7
python openstack_auth/tests/run_tests.py {posargs}
Expand Down

0 comments on commit 2fcf6f5

Please sign in to comment.