Hmm if we're going down that path, I'd prefer to be more explicit about it.
How about including the exact command that people can copy to re-run the
This is what the RSpec library (a Ruby testing library) does, and IMO it
really gets it right.
See this blog post here from a Ruby core member for some comments (under
"things I like about RSpec", and yes, that's the actual domain name):
On Wed, Sep 21, 2016 at 4:56 AM, Chris Jerdonek <chris.jerdo...@gmail.com>
> Hi, I would like to reopen the following issue from two years ago to
> change the test name in Django's test output from unittest's default to the
> full "dotted name":
> This would make rerunning failing tests easier because then the test name
> could simply be copy and pasted from the command-line as is.
> Tim told me that to reopen the issue, it needed to be discussed on this
> list first and consensus reached. See Tim's comment (as well as some of my
> reasoning for why I think the issue should be reopened) here:
> I put together a patch here with tests so you can see the PR that I was
> planning to propose:
> The approach is simply to subclass unittest.TextTestResult and override
> its getDescription() method to use the dotted name instead of unittest's
> current, less helpful format. Django already has an example of subclassing
> TextTestResult with its DebugSQLTextTestResult class.
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to email@example.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.