Browse Source

Merge "Switch coverage tox env to stestr"

Zuul 10 months ago
parent
commit
53a3f44f16
2 changed files with 9 additions and 3 deletions
  1. 1
    2
      test-requirements.txt
  2. 8
    1
      tox.ini

+ 1
- 2
test-requirements.txt View File

@@ -13,10 +13,9 @@ oslotest>=3.2.0 # Apache-2.0
13 13
 reno>=2.5.0 # Apache-2.0
14 14
 requests-mock>=1.2.0 # Apache-2.0
15 15
 stevedore>=1.20.0 # Apache-2.0
16
-testrepository>=0.0.18 # Apache-2.0/BSD
16
+stestr  # Apache-2.0
17 17
 testresources>=2.0.0 # Apache-2.0/BSD
18 18
 testtools>=2.2.0 # MIT
19
-os-testr>=1.0.0 # Apache-2.0
20 19
 python-memcached>=1.56 # PSF
21 20
 WebTest>=2.0.27 # MIT
22 21
 

+ 8
- 1
tox.ini View File

@@ -33,7 +33,14 @@ commands = bandit -r keystonemiddleware -x tests -n5
33 33
 commands = {posargs}
34 34
 
35 35
 [testenv:cover]
36
-commands = python setup.py testr --coverage --testr-args='{posargs}'
36
+setenv =
37
+    {[testenv]setenv}
38
+    PYTHON=coverage run --source keystonemiddleware --parallel-mode
39
+commands =
40
+    stestr run {posargs}
41
+    coverage combine
42
+    coverage html -d cover
43
+    coverage xml -o cover/coverage.xml
37 44
 
38 45
 [testenv:debug]
39 46
 

Loading…
Cancel
Save