Update testing docs to show how to run an individual test

This commit is contained in:
Alex Gibson 2016-01-05 11:12:12 +00:00
Родитель deca18faee
Коммит 05b6994ca2
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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: