Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

Junit Report failed assertion message

Hello,
I notice that when an assertion fails, the message in Junit is somewhat condensed. For instance

//ns2:LinkDeviceResponse[1]/ns2:LinkDeviceResult[1]/ns1:Status[1]/text()] : ComparisonFailure:expected: but was:

It would be a lot easier to read the failed assertion if the entire message was displayed.

//ns2:LinkDeviceResponse[1]/ns2:LinkDeviceResult[1]/ns1:Status[1]/text()] : ComparisonFailure:expected: but was:

Is there some setting somewhere that will allow me to view the entire message. Or would this be a feature request ?

Ali

4 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    I'll look into this, maybe it can be easily configured..

    regards,

    /Ole
    eviware.com
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    I've changed the cutoff-limit to 200 characters in the next release.. ok?

    regards!

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    is this some thing that we can tweak also ? 200 characters should be fine but incase its not I would like to tweak the settings to our needs.

    Thanks

    Ali
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    I'll just remove the limit altogether and we'll see if there is a need for tweaking..

    regards!

    /Ole
    eviware.com