mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
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.
This commit is contained in:
parent
93a135d111
commit
44c0ecdd92
11 changed files with 138 additions and 188 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue