Merge "Switch to stestr"

This commit is contained in:
Zuul 2018-11-06 15:07:20 +00:00 committed by Gerrit Code Review
commit f83a1e50a4
5 changed files with 7 additions and 13 deletions

2
.gitignore vendored
View File

@ -15,7 +15,7 @@ coverage.xml
*.py[co]
.DS_Store
*.log
.testrepository
.stestr/
subunit.log
.eggs
AUTHORS

4
.stestr.conf Normal file
View File

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

View File

@ -1,9 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
${PYTHON:-python} -m subunit.run discover -s ${OS_TEST_PATH:-./tests/} -t . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list
group_regex=([^\.]+\.)+

View File

@ -1,6 +1,6 @@
oslosphinx>=4.7.0 # Apache-2.0
pbr>=1.8 # Apache-2.0
sphinx>=1.2.1,!=1.3b1,<1.4 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=2.0.0 # Apache-2.0
testtools>=1.4.0 # MIT
yasfb>=0.5.1

View File

@ -10,9 +10,8 @@ install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
whitelist_externals = find
commands =
rm -f .testrepository
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
stestr run --slowest {posargs}
[testenv:venv]
basepython = python3