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
This commit is contained in:
Matthew Treinish 2013-09-17 17:04:03 +00:00
parent 35018f239a
commit b17460e89e
1 changed files with 7 additions and 5 deletions

View File

@ -32,16 +32,18 @@ and reference data to be used in testing.
will have a configuration file already set up to work with your will have a configuration file already set up to work with your
devstack installation. 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 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 :: To run one single test ::
$> nosetests -sv tempest.api.compute.servers.test_server_actions.py: $> testr run --parallel tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_rebuild_nonexistent_server
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 Configuration
------------- -------------