From b17460e89efe1f4efc1e3cf4fda1b7754841cdc6 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 17 Sep 2013 17:04:03 +0000 Subject: [PATCH] Update README.rst to use testr instead of nose This commit just changes the references to nose in the project README to testr. It also adds a sentence about using run_tests.sh and tox. Change-Id: I7512b7f954c1c83186b1f428e9371261cf50f41b --- README.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index f18628a6a5..4161cc61ab 100644 --- a/README.rst +++ b/README.rst @@ -32,16 +32,18 @@ and reference data to be used in testing. will have a configuration file already set up to work with your devstack installation. -Tempest is not tied to any single test runner, but Nose been the most commonly +Tempest is not tied to any single test runner, but testr is the most commonly used tool. After setting up your configuration file, you can execute -the set of Tempest tests by using ``nosetests`` :: +the set of Tempest tests by using ``testr`` :: - $> nosetests tempest + $> testr run --parallel tempest To run one single test :: - $> nosetests -sv tempest.api.compute.servers.test_server_actions.py: - ServerActionsTestJSON.test_rebuild_nonexistent_server + $> testr run --parallel tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_rebuild_nonexistent_server + +Alternatively, you can use the run_tests.sh script which will create a venv +and run the tests or use tox to do the same. Configuration -------------