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
tags/1.29.0
Vu Cong Tuan 1 year 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
.coverage
cover
.tox
nosetests.xml
.testrepository
.stestr/

# Translations
*.mo

+ 3
- 0
.stestr.conf View File

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

+ 0
- 7
.testr.conf View File

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

+ 1
- 1
lower-constraints.txt View File

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

+ 1
- 0
test-requirements.txt View File

@@ -4,6 +4,7 @@

hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0

# These are needed for docs generation
openstackdocstheme>=1.18.1 # Apache-2.0

+ 1
- 1
tox.ini View File

@@ -8,7 +8,7 @@ deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
install_command = pip install {opts} {packages}
commands = python setup.py testr --slowest --testr-args='{posargs}'
commands = stestr run --slowest {posargs}

[testenv:py27]
basepython = python2.7

Loading…
Cancel
Save