Migrate from testr to stestr

* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore and test-requirements.txt files accordingly
* Use 3.18.0 as the minversion for tox

Signed-off-by: HeroicHitesh <email.hiteshkumar@gmail.com>
Change-Id: I2bb0f23771e6ff1e3f775520a719514c2a3f3aa3
changes/91/791891/3
HeroicHitesh 2 years ago
parent f26534191e
commit 70556d2bf4

17
.gitignore vendored

@ -1,7 +1,16 @@
heat_specs.egg-info/
doc/build/
.tox/
*.pyc
.testrepository
# Packages
*.egg*
# Unit test
.stestr/
.tox/
.venv
# Sphinx
doc/build/
# pbr generates these
AUTHORS
ChangeLog

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

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

@ -1,3 +1,3 @@
testrepository>=0.0.18
stestr>=2.0.0 # Apache-2.0
testtools>=0.9.34
testscenarios>=0.4

@ -1,5 +1,5 @@
[tox]
minversion = 1.6
minversion = 3.18.0
envlist = docs,pep8
skipsdist = True
@ -10,10 +10,10 @@ setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = find
allowlist_externals = find
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
stestr run --slowest {posargs}
[testenv:venv]
commands = {posargs}

Loading…
Cancel
Save