jenkins-mocha
jenkins-mocha copied to clipboard
jenkins-mocha fails with multiple reporters?
@stjohnjohnson
It seems there is some incompatibility with Mocha 6.
This works:
mocha --recursive --reporter mocha-multi-reporters --reporter-options configFile=config/mocha-config.json --exit
This fails:
jenkins-mocha --recursive --reporter mocha-multi-reporters --reporter-options configFile=config/mocha-config.json --exit
The mocha-config.json:
{
"reporterEnabled": "list,mocha-junit-reporter",
"mochaJunitReporterReporterOptions": {
"mochaFile": "testResults/results.xml"
}
}
@stjohnjohnson Can something be done?
Interesting, so the way I would solve it is similar to how we check for cobutura. Detect that someone passes a reporter and then don't pass the reporter we automatically pass.