testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00174
[Bug 607435] Re: TextTestResult should be easier to extend
** Changed in: testtools
Status: New => Triaged
** Changed in: testtools
Importance: Undecided => Low
--
TextTestResult should be easier to extend
https://bugs.launchpad.net/bugs/607435
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
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.