-
Notifications
You must be signed in to change notification settings - Fork 153
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
fix: Make mocha-junit-reporter work with Mocha 6 #80
Conversation
Thanks for doing the legwork @YOU54F! I'm going to clear the backlog of other PRs (I hope this morning), so that people (like me) using mocha<6 can get all the new stuff. After that's done I'll do this major rev |
No worries chap! Glad to be able to help out on a project I have used for ages 👍 |
bump. It would be nice to have this as I'm seeing the same error with mocha 6+. |
Thanks for the bump. I’ll try to integrate this this week Sent with GitHawk |
Hi mate, just to let you know this is now backwards compatible with mocha <6 as we now check mocha's package.json file and if its greater or equal to 6, we set a flag and create the statsCollected |
any update @clayreimann ? |
@clayreimann - any chance we could get this merged? Cypress uses See the following file/line for where they reference it |
Nice one @clayreimann 🙌👌🤘🏽 |
You're welcome, and thanks for the contribution. The new release should be out soon. |
Mocha 6 introduced breaking changes in v6.0 specifically around reporters
https://github.com/mochajs/mocha/releases/tag/v6.0.0
the particular breaking change for reporters - mochajs/mocha#3458
PR tracking the mocha 6 upgrade and failing CI test run
YOU54F/template-cypress-docker-typescript#15
I have created forks of mocha-multi-reporter and mocha-junit-reporter and applied the fix in my cypress test suite, pulling in the forked repos with fixes applied and everything is working end to end now including mochawesome reporting.
Test runs are now passing 👍 would need a major version release, as it will be a breaking change for any users with mocha versions below 6.
https://circleci.com/gh/YOU54F/cypressio-docker-typescript/95