From 646c918732ea5764f54c2d7a99aedd498ac54a9a Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 19 Feb 2013 14:09:37 -0800 Subject: [PATCH] Add initial testr support. This doesn't really do much other that add the needed bits to the repo to start hacking on testr support in small chunks. Change-Id: I34fc57fdc7c9ebda8ffa2357a2ef962c7ab41bfa --- .gitignore | 2 ++ .testr.conf | 4 ++++ tools/test-requires | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .testr.conf diff --git a/.gitignore b/.gitignore index e8c4c0c0e..9d3783526 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,8 @@ quantum/versioninfo run_tests.err.log run_tests.log setuptools*.egg/ +subunit.log +.testrepository .tox/ .venv/ *.mo diff --git a/.testr.conf b/.testr.conf new file mode 100644 index 000000000..9339183aa --- /dev/null +++ b/.testr.conf @@ -0,0 +1,4 @@ +[DEFAULT] +test_command=${PYTHON:-python} -m subunit.run discover -t ./ quantum/tests/unit $LISTOPT $IDOPTION +test_id_option=--load-list $IDFILE +test_list_option=--list diff --git a/tools/test-requires b/tools/test-requires index d86688ea4..aa85c1bf8 100644 --- a/tools/test-requires +++ b/tools/test-requires @@ -1,6 +1,7 @@ Babel>=0.9.6 cliff -coverage +coverage>=3.6 +discover distribute>=0.6.24 fixtures>=0.3.12 mock>=1.0b1 @@ -10,7 +11,9 @@ nosehtmloutput nosexcover openstack.nose_plugin pep8 +python-subunit sphinx>=1.1.2 +testrepository>=0.0.13 testtools>=0.9.27 webtest==1.3.3 # Packages for the Cisco Plugin