Adding pretty-tox

Better test output formt.

Change-Id: I44033d660cacdc15bc584ee698cdf2a3d0b40427
This commit is contained in:
Nikita Konovalov 2015-01-27 16:37:07 +03:00
parent 4c9a611f99
commit f882e0041c
3 changed files with 8 additions and 1 deletions

View File

@ -10,6 +10,7 @@ python-subunit
sphinx>=1.1.2
oslosphinx
oslotest>=1.1.0.0a1
tempest-lib
testrepository>=0.0.18
testscenarios>=0.4
testtools>=0.9.34

6
tools/pretty_tox.sh Normal file
View 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

View File

@ -10,7 +10,7 @@ setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/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]
commands = flake8