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

jenkins-mocha fails with multiple reporters?

Open IdanAdar opened this issue 5 years ago • 2 comments

@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"
    }
}

IdanAdar avatar Feb 26 '19 07:02 IdanAdar

@stjohnjohnson Can something be done?

IdanAdar avatar Jun 10 '19 03:06 IdanAdar

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.

stjohnjohnson avatar Jul 01 '19 03:07 stjohnjohnson