Reports for Jenkins
Hello!
Want to run tests in the jenkins, but can't get report for Jenkins plugins for view results in build(use Xunit plugin).
Mocha has special reporter xunit Add mochaOpts in config for Hermione like this
system: {
mochaOpts: {
reporter: 'xunit',
timeout: 60000
}
}
It doesn't help, nothing change.
Hermione doesn't have xunit reporter. And it will not work through the mochaOpts because mocha used in hermione only as a test parser, not runner.
I'd suggest you to use html-reporter and publish it via some jenkins plugin like HTML Publisher
Do you have any ideas how I can change status of build in Jenkins if appear Error?
In case of test fail hermione exit code will be nonzero. So status should be fail by default