Merge "Switch to stestr"
This commit is contained in:
commit
f83a1e50a4
|
@ -15,7 +15,7 @@ coverage.xml
|
|||
*.py[co]
|
||||
.DS_Store
|
||||
*.log
|
||||
.testrepository
|
||||
.stestr/
|
||||
subunit.log
|
||||
.eggs
|
||||
AUTHORS
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[DEFAULT]
|
||||
test_path=./tests
|
||||
top_dir=./
|
||||
|
|
@ -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=([^\.]+\.)+
|
|
@ -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
|
||||
|
|
3
tox.ini
3
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue