summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Scheuring <andreas.scheuring@de.ibm.com>2017-01-17 15:10:36 +0100
committerAndreas Scheuring <andreas.scheuring@de.ibm.com>2017-01-17 15:10:36 +0100
commitdf600774c0e02a7468696499211d08056b4b1771 (patch)
tree3e6cfbc45baa0fecd0c970d6f856dd72391e4b5a
parent1b7ffe979fc46cff8e89136221e49c61b3cafac8 (diff)
Fix an issue where no test coverage report is created0.1.1
Running `tox -ecover` does not generate the coverage report. Instead the following is displayed to the user: No coverage report, but warnings instead: Coverage.py warning: Module networking-dpm was never imported. This patch set fixes the problem. Change-Id: Ia2f88e4899536e935e243200093d9855f2c56dbc
Notes
Notes (review): Code-Review+2: Andreas Scheuring <andreas.scheuring@de.ibm.com> Workflow+1: Andreas Scheuring <andreas.scheuring@de.ibm.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 17 Jan 2017 14:39:50 +0000 Reviewed-on: https://review.openstack.org/421287 Project: openstack/os-dpm Branch: refs/heads/master
-rw-r--r--.coveragerc1
-rw-r--r--tox.ini5
2 files changed, 5 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc
index 973a084..f160efc 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,6 +1,7 @@
1[run] 1[run]
2branch = True 2branch = True
3source = os_dpm 3source = os_dpm
4omit = os_dpm/tests/*
4 5
5[report] 6[report]
6ignore_errors = True 7ignore_errors = True
diff --git a/tox.ini b/tox.ini
index d92db08..4de3559 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,7 +22,10 @@ commands = flake8 {posargs}
22commands = {posargs} 22commands = {posargs}
23 23
24[testenv:cover] 24[testenv:cover]
25commands = python setup.py test --coverage --testr-args='{posargs}' 25commands =
26 coverage erase
27 python setup.py test --coverage --coverage-package-name=os_dpm --testr-args='{posargs}'
28 coverage report
26 29
27[testenv:docs] 30[testenv:docs]
28commands = python setup.py build_sphinx 31commands = python setup.py build_sphinx