Browse Source

Fix coverage job

Change-Id: I6a78e9ef18666b344e62c7b25bc698e8df634431
tags/0.1.0
Witold Bedyk 10 months ago
parent
commit
025b87ddfb
1 changed files with 6 additions and 5 deletions
  1. 6
    5
      tox.ini

+ 6
- 5
tox.ini View File

@@ -37,12 +37,13 @@ commands =
37 37
 
38 38
 [testenv:cover]
39 39
 description = Calculates code coverage
40
-basepython = python2.7
40
+setenv =
41
+    PYTHON=coverage run --source monasca_events_api --parallel-mode
41 42
 commands =
42
-  {[testenv]commands}
43
-  coverage erase
44
-  python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monasca_events_api
45
-  coverage report
43
+    stestr run '{posargs}'
44
+    coverage combine
45
+    coverage html -d cover
46
+    coverage xml -o cover/coverage.xml
46 47
 
47 48
 [testenv:debug]
48 49
 description = Allows to run unit-test with debug mode enabled

Loading…
Cancel
Save