From 40b4899551b7dd1d63205a4a6aa373b69cc13ae4 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Sun, 16 Aug 2015 19:26:51 -0400 Subject: [PATCH] Use ostestr for running unit tests This commit switches the test runner to be ostest in the tox.init. This will ensure that the output formatting of subunit2sql is inline with other projects. Change-Id: I4fc0eeb6678c1fa6e2625bf8f81eef0faf77d3a7 --- 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 28a0fd0..054ff53 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -10,3 +10,4 @@ testtools>=0.9.34 oslosphinx MySQL-python psycopg2 +os-testr diff --git a/tox.ini b/tox.ini index bcf3cb6..6ace379 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = - python setup.py test --slowest --testr-args='{posargs}' + ostestr {posargs} [testenv:pep8] sitepackages = False