From 145fabe7dd14702db040d16722798101da383c6f Mon Sep 17 00:00:00 2001 From: "ting.wang" <ting.wang@easystack.cn> Date: Thu, 18 Feb 2016 23:18:44 +0800 Subject: [PATCH] Use ostestr to run unit test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ostestr command provides a wrapper around the testr command. By default it also has output that is much more useful for OpenStack’s test including lists of all and failed tests and lists of the 10 slowest tests. ref: http://docs.openstack.org/developer/os-testr/ostestr.html Change-Id: If005d1987b2a4e586cf35f0cc1d07739f84235d2 --- 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 34ab478b62..f6d70d8d64 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -17,6 +17,7 @@ psycopg2>=2.5 # LGPL/ZPL python-subunit>=0.0.18 # Apache-2.0/BSD requests-mock>=0.7.0 # Apache-2.0 sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 # BSD +os-testr>=0.4.1 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD testresources>=0.2.4 # Apache-2.0/BSD testtools>=1.4.0 # MIT diff --git a/tox.ini b/tox.ini index 69786c861c..9effe92077 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = find . -type f -name "*.pyc" -delete - python setup.py testr --testr-args='{posargs}' + ostestr {posargs} [testenv:releasenotes] commands = sphinx-build -a -E -W -d releasenotes/build/doctrees \