← Back to team overview

testtools-dev team mailing list archive

[Bug 607435] Re: TextTestResult should be easier to extend

 

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

-- 
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
https://bugs.launchpad.net/bugs/607435

Title:
  TextTestResult should be easier to extend

Status in testtools:
  Triaged

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.