Merge "Switch to stestr"
This commit is contained in:
commit
6d5c4f4f3a
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,7 +10,7 @@ AUTHORS
|
|||||||
ChangeLog
|
ChangeLog
|
||||||
.projects*yaml
|
.projects*yaml
|
||||||
.projects*.pkl
|
.projects*.pkl
|
||||||
.testrepository
|
.stestr/
|
||||||
doc/source/archive_toc.rst
|
doc/source/archive_toc.rst
|
||||||
doc/source/*/*.rst
|
doc/source/*/*.rst
|
||||||
doc/source/ptl.rst
|
doc/source/ptl.rst
|
||||||
|
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=./openstack_election/tests
|
||||||
|
top_dir=./
|
@ -1,8 +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:-160} \
|
|
||||||
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./openstack_election/tests} $LISTOPT $IDOPTION
|
|
||||||
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
@ -8,6 +8,6 @@ hacking<0.12,>=0.11.0 # Apache-2.0
|
|||||||
yamllint
|
yamllint
|
||||||
mock>=2.0.0 # BSD
|
mock>=2.0.0 # BSD
|
||||||
oslotest>=1.10.0 # Apache-2.0
|
oslotest>=1.10.0 # Apache-2.0
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
stestr>=2.0.0 # Apache-2.0
|
||||||
testresources>=2.0.0 # Apache-2.0/BSD
|
testresources>=2.0.0 # Apache-2.0/BSD
|
||||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
|
2
tox.ini
2
tox.ini
@ -12,7 +12,7 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
# NOTE: If py35 fails with "db type could not be determined", delete
|
# NOTE: If py35 fails with "db type could not be determined", delete
|
||||||
# .testrepository and try again. Running py35 before py27 is OK, but not the
|
# .testrepository and try again. Running py35 before py27 is OK, but not the
|
||||||
# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909
|
# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909
|
||||||
commands = python setup.py testr --slowest --testr-args="{posargs}"
|
commands = stestr run --slowest {posargs}
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
commands = yamllint configuration.yaml
|
commands = yamllint configuration.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user