Migrate from testr to stestr

* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore accordingly
* Use py3 as the default runtime for tox and 3.18.0 as the
  minversion for tox

Change-Id: I5c389527c1e11ab9e1f5f5797cb1bd1e58bd8753
This commit is contained in:
Anand Bhat 2021-07-12 23:17:47 +05:30
parent 25fb3a9f53
commit ac430256ea
4 changed files with 5 additions and 9 deletions

2
.gitignore vendored
View File

@ -27,7 +27,7 @@ cover/
!.coveragerc
.tox
nosetests.xml
.testrepository
.stestr/
.venv
# Translations

3
.stestr.conf Normal file
View File

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

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

View File

@ -1,5 +1,5 @@
[tox]
minversion = 2.0
minversion = 3.18.0
envlist = docs
skipsdist = True