Switch from testrepository to stestr
Adopts use of newer stestr for running the test suite. Passing TERM is needed or stestr will ignore the --color option when run under tox. Change-Id: Id2d4ce36cdfedd5a847e0428854753d2cf4140ee
This commit is contained in:
parent
e535d4467e
commit
514958d3f3
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ ChangeLog
|
||||
*.egg-info
|
||||
*.pyc
|
||||
doc/build
|
||||
.stestr
|
||||
|
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[DEFAULT]
|
||||
test_path=./git_review/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:-60} \
|
||||
${PYTHON:-python} -m subunit.run discover -t ./ ./git_review/tests $LISTOPT $IDOPTION
|
||||
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
@ -1,5 +1,5 @@
|
||||
hacking>=0.10.0,<0.11
|
||||
mock
|
||||
fixtures>=0.3.14
|
||||
testrepository>=0.0.18
|
||||
stestr>=2.2.0
|
||||
testtools>=0.9.34
|
||||
|
5
tox.ini
5
tox.ini
@ -12,12 +12,11 @@ passenv =
|
||||
JAVA_HOME
|
||||
# uncomment to allow custom java options to be added
|
||||
# _JAVA_OPTIONS
|
||||
|
||||
TERM
|
||||
commands =
|
||||
python -m git_review.tests.check_test_id_hashes discover --list
|
||||
python -m git_review.tests.prepare
|
||||
python setup.py testr --slowest --testr-args='--concurrency=2 {posargs}'
|
||||
|
||||
stestr run --color {posargs}
|
||||
deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
Loading…
Reference in New Issue
Block a user