diff options
author | Mike Hagedorn <mike.hagedorn@hp.com> | 2015-06-30 14:05:18 -0500 |
---|---|---|
committer | Mike Hagedorn <mike.hagedorn@hp.com> | 2015-07-01 14:28:53 -0500 |
commit | 2fcf6f569afaf6962db1ef706ebb3a2a934b7865 (patch) | |
tree | ad20dd46b389fca68660c37073e86dcbc196c678 /tox.ini | |
parent | 20347554913fff786ea604263484ef6bdb0b24ad (diff) | |
download | django_openstack_auth-2fcf6f569afaf6962db1ef706ebb3a2a934b7865.tar.gz |
Add Coverage Reports To DOA
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
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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} |