#26659: New parameter for test methods filtering
-------------------------------+--------------------
Reporter: apiraino | Owner: nobody
Type: New feature | Status: new
Component: Uncategorized | Version: 1.9
Severity: Normal | Keywords: tests
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
As described here:
https://groups.google.com/d/msg/django-developers/W6YiFg9ITg0/BAOTHezHBgAJ
we could add a new, optional parameter to filter only a desired set of
(comma separated) test methods instead of writing the full path for a
single test or run an entire class/package. Example, instead of this:
$ python manage.py test \
mydjangoapp.app_one.tests.test_module.TestClass.test_method_1
we could have this:
$ python manage.py test --method-filter test_method_1,test_method_2,...
Another improvement this patch implements (as suggested in that django-dev
thread) is the possibility to have the full path to the failing test to be
easily copied and pasted. This is implemented adding a
SimpleTextTestResult class.
These are especially useful for running only failing tests.
If the ticket is accepted, I'll write the documentation too.
--
Ticket URL: <https://code.djangoproject.com/ticket/26659>
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/051.85fbf2cf9b15d5b590e671de00e2f724%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.