From d7f2d4f23eba13eea6c314bf5fde34df7a4df912 Mon Sep 17 00:00:00 2001 From: Aaron-DH Date: Fri, 17 Feb 2017 13:17:21 +0800 Subject: [PATCH] Using os-testr to get better report As a wrapper of testr, os-testr uses subunit-trace for output and builds some helpful extra functionality around testr Reference link: http://docs.openstack.org/developer/os-testr/index.html Change-Id: I5eb1ea062334c06f5e95ef54367e427b98a17bac --- test-requirements.txt | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index 084b450b96..6f1dce02d1 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -25,6 +25,7 @@ testresources>=0.2.4 # Apache-2.0/BSD reno>=1.8.0 # Apache-2.0 # Next are used in integration tests only os-collect-config # Apache-2.0 +os-testr>=0.8.0 # Apache-2.0 paramiko>=2.0 # LGPLv2.1+ tempest>=14.0.0 # Apache-2.0 gabbi>=1.26.1 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 9871a879c4..9fc994a4dc 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.py[c|o]' -delete - python setup.py testr --slowest --testr-args='{posargs}' + ostestr --slowest '{posargs}' whitelist_externals = bash