Fix example for running individual tests

The ':' syntax doesn't seem to work anymore. Additionally fix the "tox" call to
not try to run it from the current working directory. It's usually installed
somewhere in $PATH.

Closes-Bug: #1334134
Change-Id: Ie608cee2ac131941d6642e2560a84db55415654b
changes/96/101896/4
Ralf Haferkamp 9 years ago
parent b5cd4c7cef
commit 4675b462b6
  1. 4
      TESTING.rst

@ -123,11 +123,11 @@ class separating it from the module path with a colon.
For example, the following would run only the JSONV2TestCase tests from
neutron/tests/unit/test_api_v2.py::
$ ./run_tests.sh neutron.tests.unit.test_api_v2:JSONV2TestCase
$ ./run_tests.sh neutron.tests.unit.test_api_v2.JSONV2TestCase
or::
$ ./tox neutron.tests.unit.test_api_v2:JSONV2TestCase
$ tox -e py27 neutron.tests.unit.test_api_v2.JSONV2TestCase
Adding more tests
~~~~~~~~~~~~~~~~~

Loading…
Cancel
Save