#17365: Extend test discovery to include unittest2 test suite runner
-----------------------------------+------------------------------------
Reporter: jezdez | Owner: nobody
Type: New feature | Status: new
Component: Testing framework | Version: SVN
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 carljm):
Moving a conversation from #17966 that's OT there to this ticket:
Replying to rob:
> I find that often the strange edge-cases are caught by running the tests
in contrib, which my own tests may not necessarily cover (though this
should obviously be rectified, if such a situation is discovered).
>
> For example, the behaviour of custom middleware on login/logout views.
I'd feel somewhat uncomfortable excluding Django's tests from the build
(is there even a way to do this - or must you specify each of your own
apps explicitly on the command line?)
I guess it would be more productive to look at a specific real example of
a "strange edge-case" that was caught by a contrib test, as I don't have
any such examples in my own experience (while I have seen many cases of
spurious failures).
Currently with the built-in test runner there is no automatic way to
exclude django.contrib (or other third-party app) tests, you have to
manually list the apps you want to test. This can be wrapped up in a
script. Once this ticket is fixed, that will change.
--
Ticket URL: <https://code.djangoproject.com/ticket/17365#comment:19>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.