Adding pretty-tox
Tests output looks more informative with it. Change-Id: I09377a383607c9d4bbb5aa6506bc83e1ced39de0
This commit is contained in:
parent
ede962ee00
commit
e136c92ca4
@ -7,6 +7,7 @@ mock>=1.0
|
|||||||
python-subunit
|
python-subunit
|
||||||
oslo.sphinx
|
oslo.sphinx
|
||||||
oslotest>=1.2.0
|
oslotest>=1.2.0
|
||||||
|
tempest-lib
|
||||||
testrepository>=0.0.18
|
testrepository>=0.0.18
|
||||||
testscenarios>=0.4,<0.5
|
testscenarios>=0.4,<0.5
|
||||||
testtools>=0.9.34
|
testtools>=0.9.34
|
||||||
|
6
tools/pretty_tox.sh
Normal file
6
tools/pretty_tox.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
TESTRARGS=$1
|
||||||
|
python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
|
2
tox.ini
2
tox.ini
@ -10,7 +10,7 @@ setenv =
|
|||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
commands = bash tools/pretty_tox.sh '{posargs}'
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
Loading…
Reference in New Issue
Block a user