Selenium tests in Django's own test suite should be off by default, flag to enable
|Reported by:||Carl Meyer||Owned by:||Zbigniew Siciarz|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The Django test suite includes a number of Selenium tests, mostly for testing the admin.
Currently these tests are automatically run if Selenium is installed, and not otherwise.
This is irritating, because I often don't want to run those tests (because they are very slow, and more prone to spurious breakage), but sometimes I do. Currently this means I have to repeatedly "pip install selenium" / "pip uninstall selenium", or else duplicate every Django-development virtualenv (of which I have seven, for Python 2.4/2.5/2.6/2.7/3.2/3.3) for a with-selenium and without-selenium version.
Instead, I think there should be a test-runner flag or an environment variable to explicitly disable running the Selenium tests even when Selenium is installed. (Or maybe have the default be not run them, and provide the flag to run them; I have no strong opinion on that.)
Change History (6)
comment:2 Changed 4 years ago by
|Owner:||changed from nobody to Zbigniew Siciarz|
|Status:||new → assigned|
|Version:||1.4 → master|
comment:5 Changed 4 years ago by
|Status:||closed → new|
|Summary:||There should be an explicit flag to turn on/off Selenium tests in Django's own test suite → Selenium tests in Django's own test suite should be off by default, flag to enable|