Forum Discussion

cerskine's avatar
cerskine
New Contributor
16 years ago

Log messages in junit reports

I am running some groovy scripts where I do a 'log.info("message")'.  Is there a way to get both the log messages and the output of the maven runner to be included in the junit reports?
  • wdowling's avatar
    wdowling
    Occasional Contributor
    I have also looked at this and taken the approach of creating a script assertion that if it should fail the test step will return a formatted message including the REST request and response.

    basically by testing the condition with an 'If' rather than the assert, if the condition is false I assert that the formatted response string is empty causing it to appear in the output in a way the Hudson/maven understand