Browse Source

Merge "Switch to using stestr"

Zuul 9 months ago
parent
commit
78f4d7a5a4
4 changed files with 8 additions and 4 deletions
  1. 1
    0
      .gitignore
  2. 3
    0
      .stestr.conf
  3. 1
    1
      test-requirements.txt
  4. 3
    3
      tox.ini

+ 1
- 0
.gitignore View File

@@ -4,3 +4,4 @@ ChangeLog
4 4
 monasca_transform.egg-info
5 5
 tools/vagrant/.vagrant
6 6
 doc/build/*
7
+.stestr

+ 3
- 0
.stestr.conf View File

@@ -0,0 +1,3 @@
1
+[DEFAULT]
2
+test_path=${OS_TEST_PATH:-./tests/unit}
3
+top_dir=./

+ 1
- 1
test-requirements.txt View File

@@ -7,7 +7,7 @@ flake8<2.6.0,>=2.5.4 # MIT
7 7
 nose>=1.3.7 # LGPL
8 8
 mock>=2.0.0 # BSD
9 9
 fixtures>=3.0.0 # Apache-2.0/BSD
10
-os-testr>=1.0.0 # Apache-2.0
10
+stestr>=2.0.0 # Apache-2.0
11 11
 # required to build documentation
12 12
 sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
13 13
 #oslosphinx>=4.7.0 # Apache-2.0

+ 3
- 3
tox.ini View File

@@ -19,7 +19,7 @@ whitelist_externals = bash
19 19
                       find
20 20
 commands =
21 21
   find . -type f -name "*.pyc" -delete
22
-  ostestr {posargs}
22
+  stestr run {posargs}
23 23
 
24 24
 [testenv:functional]
25 25
 basepython = python2.7
@@ -28,7 +28,7 @@ setenv = {[testenv]setenv}
28 28
          SPARK_SCALA_VERSION=2.10
29 29
          OS_TEST_PATH=tests/functional
30 30
 commands =
31
-  ostestr --serial {posargs}
31
+  stestr run --serial {posargs}
32 32
 
33 33
 [testenv:functional-py35]
34 34
 basepython = python3.5
@@ -36,7 +36,7 @@ setenv = {[testenv]setenv}
36 36
          SPARK_HOME=/opt/spark/current
37 37
          OS_TEST_PATH=tests/functional
38 38
 commands =
39
-  ostestr --serial {posargs}
39
+  stestr run --serial {posargs}
40 40
 
41 41
 [testenv:pep8]
42 42
 commands = flake8

Loading…
Cancel
Save