Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jenkins-mocha fails with multiple reporters? #37

Open
IdanAdar opened this issue Feb 26, 2019 · 2 comments
Open

jenkins-mocha fails with multiple reporters? #37

IdanAdar opened this issue Feb 26, 2019 · 2 comments

Comments

@IdanAdar
Copy link

IdanAdar commented Feb 26, 2019

@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
Copy link
Author

@stjohnjohnson Can something be done?

@stjohnjohnson
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants