Browse Source

Switch to stestr

According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Id762418616487dfb0955675b7c50085b48307879
Vu Cong Tuan 9 months ago
parent
commit
8d49f91349
6 changed files with 7 additions and 11 deletions
  1. 1
    2
      .gitignore
  2. 3
    0
      .stestr.conf
  3. 0
    7
      .testr.conf
  4. 1
    1
      lower-constraints.txt
  5. 1
    0
      test-requirements.txt
  6. 1
    1
      tox.ini

+ 1
- 2
.gitignore View File

@@ -26,8 +26,7 @@ pip-log.txt
26 26
 .coverage
27 27
 cover
28 28
 .tox
29
-nosetests.xml
30
-.testrepository
29
+.stestr/
31 30
 
32 31
 # Translations
33 32
 *.mo

+ 3
- 0
.stestr.conf View File

@@ -0,0 +1,3 @@
1
+[DEFAULT]
2
+test_path=./oslo_reports/tests
3
+top_path=./

+ 0
- 7
.testr.conf View File

@@ -1,7 +0,0 @@
1
-[DEFAULT]
2
-test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
3
-             OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
4
-             OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
5
-             ${PYTHON:-python} -m subunit.run discover -t ./ ./oslo_reports $LISTOPT $IDOPTION
6
-test_id_option=--load-list $IDFILE
7
-test_list_option=--list

+ 1
- 1
lower-constraints.txt View File

@@ -53,8 +53,8 @@ smmap==0.9.0
53 53
 snowballstemmer==1.2.1
54 54
 Sphinx==1.6.2
55 55
 sphinxcontrib-websupport==1.0.1
56
+stestr==2.0.0
56 57
 stevedore==1.20.0
57
-testrepository==0.0.18
58 58
 testtools==2.2.0
59 59
 traceback2==1.4.0
60 60
 unittest2==1.1.0

+ 1
- 0
test-requirements.txt View File

@@ -4,6 +4,7 @@
4 4
 
5 5
 hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
6 6
 oslotest>=3.2.0 # Apache-2.0
7
+stestr>=2.0.0 # Apache-2.0
7 8
 
8 9
 # These are needed for docs generation
9 10
 openstackdocstheme>=1.18.1 # Apache-2.0

+ 1
- 1
tox.ini View File

@@ -8,7 +8,7 @@ deps =
8 8
   -r{toxinidir}/test-requirements.txt
9 9
   -r{toxinidir}/requirements.txt
10 10
 install_command = pip install {opts} {packages}
11
-commands = python setup.py testr --slowest --testr-args='{posargs}'
11
+commands = stestr run --slowest {posargs}
12 12
 
13 13
 [testenv:py27]
14 14
 basepython = python2.7

Loading…
Cancel
Save