#25653: Provide a way to run only the selenium tests
-----------------------------------+------------------------------------
     Reporter:  timgraham          |                    Owner:  nobody
         Type:  New feature        |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by akaariai):

 I really, really think we want to add "test tags". Users could define tags
 manually. Selenium tests could have tag "selenium" by default.

 So, to run tests without selenium tests: `python manage.py test --exclude-
 tags=selenium`. To run only selenium tests: `python manage.py test
 --tags=selenium`.

 Tags would have a lot of other uses, too. Say, you might want to tag a
 subset of your tests as smoke tests, or you might want to tag those tests
 that are slow (not only selenium tests are slow).

 If you want to do an incremental test run, and you have tags fast, slow
 and selenium.
 {{{
 python manage.py test --tags=fast  # run fast tests first
 python manage.py test --tags=slow --exclude-tags=selenium  # run those
 slow tests that aren't selenium
 python manage.py test --tags=selenium # run selenium tests
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25653#comment:2>
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.e3a64f3b7649abbe267557c776fe1b97%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to