← Back to team overview

testtools-dev team mailing list archive

[Bug 593190] Re: assertThat unconditionally prints matchee on mismatch

 

** Branch linked: lp:~jml/testtools/assertThat-less-verbose-675323

-- 
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:
  In Progress

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