Selenium tests in Django's own test suite should be off by default, flag to enable
|Reported by:||carljm||Owned by:||zsiciarz|
|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 2 years ago by zsiciarz
- Owner changed from nobody to zsiciarz
- Status changed from new to assigned
- Version changed from 1.4 to master
comment:4 Changed 2 years ago by Honza Král <Honza.Kral@…>
- Resolution set to fixed
- Status changed from assigned to closed
comment:5 Changed 2 years ago by carljm
- Resolution fixed deleted
- Status changed from closed to new
- Summary changed from There should be an explicit flag to turn on/off Selenium tests in Django's own test suite to Selenium tests in Django's own test suite should be off by default, flag to enable