From 44c0ecdd9226d039a8c666b36ae320af2046a1c1 Mon Sep 17 00:00:00 2001 From: Akshesh Date: Sun, 7 Feb 2016 07:54:36 +0530 Subject: Fixed #25364 -- Added generic way to test on all browsers supported by selenium. Browser names should be passed as a comma separated list to the --selenium flag. Thanks Tim Graham, Simon Charette and Moritz Sichert for review and discussion. --- docs/internals/contributing/writing-code/unit-tests.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'docs/internals/contributing/writing-code') diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 37973261f4..2cbbd30dd4 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -119,16 +119,20 @@ Going beyond that, you can specify an individual test method like this:: Running the Selenium tests -------------------------- -Some tests require Selenium and a Web browser (Firefox, Google Chrome, or -Internet Explorer). To allow those tests to be run rather than skipped, you must -install the selenium_ package into your Python path and run the tests with the -``--selenium`` option:: +Some tests require Selenium and a Web browser. To run these tests, you must +install the selenium_ package and run the tests with the +``--selenium=`` option. For example, if you have Firefox and Google +Chrome installed:: - $ ./runtests.py --settings=test_sqlite --selenium admin_inlines + $ ./runtests.py --selenium=firefox,chrome + +See the `selenium.webdriver`_ package for the list of available browsers. Specifying ``--selenium`` automatically sets ``--tags=selenium`` to run only the tests that require selenium. +.. _selenium.webdriver: https://github.com/SeleniumHQ/selenium/tree/master/py/selenium/webdriver + .. _running-unit-tests-dependencies: Running all the tests -- cgit v1.3