testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00747
[Bug 593190] Re: assertThat unconditionally prints matchee on mismatch
This is a genuine issue, even if it might be tricky to solve well. I've
rephrased to drop the "should" and marked as Triaged rather than
incomplete.
** Summary changed:
- assertThat shouldn't unconditionally print matchee on mismatch
+ assertThat unconditionally prints matchee on mismatch
** Changed in: testtools
Status: Incomplete => Triaged
--
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
https://bugs.launchpad.net/bugs/593190
Title:
assertThat unconditionally prints matchee on mismatch
Status in testtools:
Triaged
Bug description:
Hi,
In some cases printing the whole matchee is not helpful to the developer using
testtools.
With the support for adding details from mismatches it is possible to provide the
full matchee to the developer when the majority isn't going to be that useful.
For soupmatchers I want to get away from printing the whole HTML document,
because it could be huge and only a small part of it be useful.
I would suggest that the Mismatch was able to format the matchee for display,
giving essentially more control to the matcher, rather than assuming one size
fits all.
Thanks,
James
To manage notifications about this bug go to:
https://bugs.launchpad.net/testtools/+bug/593190/+subscriptions