#25653: Provide a way to run only the selenium tests
-----------------------------------+------------------------------------
Reporter: timgraham | Owner: mrbox
Type: New feature | Status: assigned
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Comment (by carljm):
I've created a new ticket (#25735) specifically for the test-tagging
feature, since currently that's all the PR implements, and I think it's
best to separate the new feature from its use in Django's own test suite.
Even once we merge that feature, before this ticket can be closed we still
need to figure out how the use of the new tagging feature for Selenium
tests interacts with the existing `--selenium` option. Some options (all
of these options assume that we tag all Selenium tests with a "selenium"
tag):
1) Deprecate/remove `--selenium` and just use the tagging feature alone.
This means that you would need to specify `--exclude-tags selenium` to get
the equivalent of the current behavior. I don't like this option, because
I still don't think the Selenium tests should run by default in local
development: they are too slow and the constant windows-popping-up is too
invasive.
2) Leave `--selenium` as-is. This means that to run all tests you'd
provide `--selenium`, to run Selenium only you'd provide `--selenium
--tags selenium`. The latter seems a bit redundant, but perhaps OK?
3) Leave `--selenium` as-is, and make `--tags selenium` automatically
imply `--selenium`. So to run all tests you'd run `--selenium`, to run
only the Selenium tests you'd run `--tags selenium`.
There are probably other reasonable permutations I haven't considered.
Thoughts?
--
Ticket URL: <https://code.djangoproject.com/ticket/25653#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.63c95022ff9d478b0fb1497d51ffbf1e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.