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: If740b4f0946c15a3bb3c3f405edbcee66e66c460
tags/0.1.0
Vu Cong Tuan 10 months ago
parent
commit
aebbade4fd
6 changed files with 8 additions and 11 deletions
  1. 1
    2
      .gitignore
  2. 4
    0
      .stestr.conf
  3. 0
    7
      .testr.conf
  4. 1
    1
      requirements.txt
  5. 1
    0
      test-requirements.txt
  6. 1
    1
      tox.ini

+ 1
- 2
.gitignore View File

@@ -22,8 +22,7 @@ pip-log.txt
22 22
 .coverage
23 23
 cover
24 24
 .tox
25
-nosetests.xml
26
-.testrepository
25
+.stestr/
27 26
 
28 27
 # Developer
29 28
 .project

+ 4
- 0
.stestr.conf View File

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

+ 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 ./ . $LISTOPT $IDOPTION
6
-test_id_option=--load-list $IDFILE
7
-test_list_option=--list

+ 1
- 1
requirements.txt View File

@@ -4,7 +4,7 @@
4 4
 pbr!=2.1.0,>=2.0.0 # Apache-2.0
5 5
 aodhclient>=0.9.0 # Apache-2.0
6 6
 gnocchiclient>=3.3.1 # Apache-2.0
7
-python-barbicanclient!=4.5.0,!=4.5.1,>=4.0.0 # Apache-2.0
7
+python-barbicanclient>=4.5.2 # Apache-2.0
8 8
 python-congressclient<2000,>=1.3.0 # Apache-2.0
9 9
 python-designateclient>=2.7.0 # Apache-2.0
10 10
 python-heatclient>=1.10.0 # Apache-2.0

+ 1
- 0
test-requirements.txt View File

@@ -5,6 +5,7 @@ hacking<0.11,>=0.10.0
5 5
 
6 6
 # this is required for the tests
7 7
 oslotest>=1.10.0 # Apache-2.0
8
+stestr>=2.0.0 # Apache-2.0
8 9
 
9 10
 # this is required for the docs
10 11
 sphinx>=1.6.2 # BSD

+ 1
- 1
tox.ini View File

@@ -4,7 +4,7 @@ envlist = py35,py27,pep8
4 4
 
5 5
 [testenv]
6 6
 deps = -r{toxinidir}/test-requirements.txt
7
-commands = python setup.py testr --slowest --testr-args='{posargs}'
7
+commands = stestr run --slowest {posargs}
8 8
 
9 9
 [testenv:pep8]
10 10
 deps=-r{toxinidir}/test-requirements.txt

Loading…
Cancel
Save