From 05b6994ca21760388153c8543655d7a06e1f92be Mon Sep 17 00:00:00 2001 From: Alex Gibson Date: Tue, 5 Jan 2016 11:12:12 +0000 Subject: [PATCH] Update testing docs to show how to run an individual test --- docs/testing.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/testing.rst b/docs/testing.rst index e4a2db2282..ea074e41c4 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -83,6 +83,13 @@ e.g. ``tests/functional/test_newsletter.py``: $ py.test --driver Firefox --html tests/functional/results.html -n auto tests/functional/test_newsletter.py +To run a single test you can filter using the ``-k`` argument supplied with a keyword +e.g. ``-k test_successful_sign_up``: + +.. code-block:: bash + + $ py.test --driver Firefox --html tests/functional/results.html -n auto tests/functional/test_newsletter.py -k test_successful_sign_up + You can also easily run the tests against any bedrock environment by specifying the ``--base-url`` argument. For example, to run all functional tests against dev: