#30245: Run tests matching a filter (Python 3.7 -k option)
-------------------------------------+-------------------------------------
               Reporter:  François   |          Owner:  François Freitag
  Freitag                            |
                   Type:  New        |         Status:  assigned
  feature                            |
              Component:  Testing    |        Version:  master
  framework                          |       Keywords:
               Severity:  Normal     |  test,unittest,filter
           Triage Stage:             |      Has patch:  1
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 With Python 3.7, the `unittest` module got a `-k` option (as in keyword),
 to run tests matching a given keyword. Corresponding entry in the
 [https://docs.python.org/3.7/whatsnew/3.7.html#unittest Python 3.7
 unittest release note entry]. Associated python issue:
 https://bugs.python.org/issue32071.

 The feature seems to be coming from the `py.test` project feature
 [https://docs.pytest.org/en/latest/usage.html#specifying-tests-selecting-
 tests running tests by keyword expression]. The feature is also available
 in other testing frameworks, such as `PHPUnit`'s
 [https://phpunit.de/manual/6.5/en/textui.html --filter] option.

 Adding a similar feature to Django would facilitate test selection. Since
 `-k` is already the short-hand for `--keepdb`, it may make more sense to
 implement another flag, maybe `--filter`?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30245>
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/058.9f7d118fca4442817af55492c18c7047%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to