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: Ibbad6f4e63efbef4e2e144f3ba4218ce6579371a
changes/60/581560/1
Vu Cong Tuan 1 year ago
parent
commit
b86f2407da
6 changed files with 8 additions and 11 deletions
  1. 1
    1
      .gitignore
  2. 4
    0
      .stestr.conf
  3. 0
    7
      .testr.conf
  4. 1
    1
      lower-constraints.txt
  5. 1
    1
      test-requirements.txt
  6. 1
    1
      tox.ini

+ 1
- 1
.gitignore View File

@@ -15,7 +15,7 @@ sdist
.cache
.coverage
.tox
.testrepository
.stestr/

# pbr generates these
AUTHORS

+ 4
- 0
.stestr.conf View File

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


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

+ 1
- 1
lower-constraints.txt View File

@@ -39,7 +39,7 @@ snowballstemmer==1.2.1
Sphinx==1.6.5
sphinxcontrib-websupport==1.0.1
stevedore==1.20.0
testrepository==0.0.18
stestr==2.0.0
testtools==2.2.0
traceback2==1.4.0
unittest2==1.1.0

+ 1
- 1
test-requirements.txt View File

@@ -12,7 +12,7 @@ pylint==1.7.1 # GPLv2

reno>=2.5.0 # Apache-2.0
openstackdocstheme>=1.18.1 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=2.0.0 # Apache-2.0

# mock object framework
mock>=2.0.0 # BSD

+ 1
- 1
tox.ini View File

@@ -12,7 +12,7 @@ deps = scrapy>=1.0.0
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
commands = stestr run --slowest {posargs}

[testenv:pep8]
commands =

Loading…
Cancel
Save