mocha-jenkins-reporter icon indicating copy to clipboard operation
mocha-jenkins-reporter copied to clipboard

Possible to include more details about failures in test output?

Open scmorse opened this issue 6 years ago • 2 comments

It would be helpful to see these details in jenkins:

  • the test definition (.on('fail', ... -> test.body)
  • the test file name (.on('fail', ... -> test.file)
  • the test stack trace (.on('fail', ... -> test.stack)

Even if they were only exposed in some sort of an opt-in configuration.

scmorse avatar Oct 05 '18 15:10 scmorse

I see now that you have JUNIT_REPORT_STACK. So I guess the request here is just to have similar options for JUNIT_REPORT_BODY / JUNIT_REPORT_FILE

scmorse avatar Oct 05 '18 15:10 scmorse

Ideally, I think it would be amazing to see a copy of the body of the test with the line that failed highlighted.

scmorse avatar Oct 05 '18 15:10 scmorse