Merge "Switch to stestr"

This commit is contained in:
Zuul 2018-11-06 14:52:25 +00:00 committed by Gerrit Code Review
commit 647d068a49
5 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View File

@ -7,5 +7,5 @@ build
*.swp
*.swo
*.pyc
.testrepository
.stestr/
.idea

4
.stestr.conf Normal file
View File

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

View File

@ -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

View File

@ -4,5 +4,5 @@
hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
oslo.utils>=3.33.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=2.1.0 # Apache-2.0
testtools>=1.4.0 # MIT

View File

@ -22,7 +22,7 @@ deps =
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
stestr run --slowest {posargs}
flake8 {posargs}
[flake8]