Merge "Update the README file to use tox -e all"

This commit is contained in:
Zuul 2023-10-19 15:45:45 +00:00 committed by Gerrit Code Review
commit 5b2eca40a8
1 changed files with 10 additions and 4 deletions

View File

@ -30,20 +30,26 @@ https://docs.openstack.org/tempest/latest/plugin.html
Installing
----------
Clone this repository to the destination machine, and call from the repo::
From the tempest directory, setup the tempest virtual environment for the
Octavia tempest plugin::
$ pip install -e .
$ tox -e venv-tempest -- pip3 install -e <path to octavia-tempest-plugin>
For example, when using a typical devstack setup::
$ cd /opt/stack/tempest
$ tox -e venv-tempest -- pip3 install -e /opt/stack/octavia-tempest-plugin
Running the tests
-----------------
To run all the tests from this plugin, call from the tempest repo::
$ tox -e all-plugin -- octavia_tempest_plugin
$ tox -e all -- octavia_tempest_plugin
To run a single test case, call with full path, for example::
$ tox -e all-plugin -- octavia_tempest_plugin.tests.scenario.v2.test_traffic_ops.TrafficOperationsScenarioTest.test_basic_traffic
$ tox -e all -- octavia_tempest_plugin.tests.scenario.v2.test_traffic_ops.TrafficOperationsScenarioTest.test_basic_traffic
To retrieve a list of all tempest tests, run::