diff options
author | Lucas Alvares Gomes <lucasagomes@gmail.com> | 2017-01-03 11:25:56 +0000 |
---|---|---|
committer | Steve Martinelli <s.martinelli@gmail.com> | 2017-01-03 17:13:13 +0000 |
commit | 53adca6deb9b692f1e0842abef366f81aefc6e2d (patch) | |
tree | 5c35718f3f3ff685ac3891f0f1ae85b2cd424910 /tox.ini | |
parent | abaf1b5bf718d0c59fa918ada2fb91370292f7c6 (diff) | |
download | keystonemiddleware-53adca6deb9b692f1e0842abef366f81aefc6e2d.tar.gz |
Switch tox unit test command to use ostestr
This commit switches the tox command to use ostestr instead of calling
testr through setup.py. The primary advantage here is that it uses the
subunit-trace output filter. ostestr primarily exists as a replacement for
pretty_tox.sh bash scripts which spread like a plague through OpenStack
projects after Nova copied it from Tempest.
Note that this dramatically increases output while running tests.
However, test failures are still at the bottom of the output, so it
shouldn't cause much pain, if any.
Change-Id: Id1ad26bc9670efa94c3c91142a177c75a12ce7d6
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -11,11 +11,12 @@ setenv = VIRTUAL_ENV={envdir} CLIENT_NAME=keystonemiddleware OS_STDOUT_NOCAPTURE=False OS_STDERR_NOCAPTURE=False + TESTS_DIR=./keystonemiddleware/tests/unit/ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt .[audit_notifications] -commands = python setup.py testr --testr-args='{posargs}' +commands = ostestr {posargs} [testenv:pep8] commands = |