diff options
| author | Akshesh <aksheshdoshi@gmail.com> | 2016-02-07 07:54:36 +0530 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2016-03-15 13:10:32 -0400 |
| commit | 44c0ecdd9226d039a8c666b36ae320af2046a1c1 (patch) | |
| tree | 0bb97b72359a18c7f1ef39ebd9239ef5ee62dc5f /docs/internals/contributing/writing-code/unit-tests.txt | |
| parent | 93a135d111c2569d88d65a3f4ad9e6d9ad291452 (diff) | |
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.
Diffstat (limited to 'docs/internals/contributing/writing-code/unit-tests.txt')
| -rw-r--r-- | docs/internals/contributing/writing-code/unit-tests.txt | 14 |
1 files changed, 9 insertions, 5 deletions
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=<BROWSERS>`` 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 |
