TextTestResult should be easier to extend

Bug #607435 reported by Martin Packman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testtools
Triaged
Wishlist
Unassigned

Bug Description

Just moved bzrlib.selftest.ExtendedTestResult over from deriving from unittest._TextTestResult to testtools.TextTestResult and it was not quite as seamless as I was hoping.

The testtools class has:
* No concept of verbosity (so different __init__ arguments)
* No printErrors method, and the printErrorList equivalent is private
* No way of extending stopTestRun with more information in the final summary line

This meant rather than being able to delete duplicated logic, had to instead add to it.

Jonathan Lange (jml)
Changed in testtools:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Robert Collins (lifeless) wrote :

Martin, i don't think this bug, as phrased, is likely to get much traction. Would you consider filing separate bugs for the different things you want changed? Or perhaps a patch?

Changed in testtools:
importance: Low → Wishlist
Revision history for this message
Leo Arias (elopio) wrote :

I think I have the same problem as Martin. I filled bug #1153837.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.