summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWitold Bedyk <witold.bedyk@est.fujitsu.com>2018-08-09 15:52:07 +0200
committerWitold Bedyk <witold.bedyk@est.fujitsu.com>2018-08-09 15:52:07 +0200
commit025b87ddfb1cbdb9780ff57b0caec9ec846085e0 (patch)
treec65c14efde2c043cdb52f6e9aeb669dce7b55004
parenta9ca4bf8c738acc93d421dfe7cf7419e3b01691c (diff)
Fix coverage job
Notes
Notes (review): Code-Review+2: Amir Mofakhar <amofakhar@op5.com> Workflow+1: Dobroslaw Zybort <dobroslaw.zybort@ts.fujitsu.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 10 Aug 2018 08:17:00 +0000 Reviewed-on: https://review.openstack.org/590334 Project: openstack/monasca-events-api Branch: refs/heads/master
-rw-r--r--tox.ini11
1 files changed, 6 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index f9fe076..cd8b1a5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -37,12 +37,13 @@ commands =
37 37
38[testenv:cover] 38[testenv:cover]
39description = Calculates code coverage 39description = Calculates code coverage
40basepython = python2.7 40setenv =
41 PYTHON=coverage run --source monasca_events_api --parallel-mode
41commands = 42commands =
42 {[testenv]commands} 43 stestr run '{posargs}'
43 coverage erase 44 coverage combine
44 python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monasca_events_api 45 coverage html -d cover
45 coverage report 46 coverage xml -o cover/coverage.xml
46 47
47[testenv:debug] 48[testenv:debug]
48description = Allows to run unit-test with debug mode enabled 49description = Allows to run unit-test with debug mode enabled