-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
mochawesome, mocha-reporter-junit, third-party reporters do not work in parallel mode #4453
Comments
you and/or the mochawesome maintainer(s) would need to find the root cause of the failure; once we have that, we can see if it's fixable. the data reporters get in parallel mode is not the same as serial mode; see #4403 going to leave this open, but it's not actionable until we know more about why. (note: mochawesome is not maintained by the mocha team) |
@boneskull I tried with the junit-reporter for mocha and got the below error. Mochawesome I don't have error TypeError: Cannot read property 'testsuite' of undefined |
These all fail for likely different reasons, but I do not have time to determine why. For each of these, I need to know the root cause; it's likely one of these issues:
The best people to answer these questions would be maintainers-of or contributors-to the broken reporters. I encourage those interested in a fix to open an issue in their repo(s) and reference this one. |
Hi @gurjeetbains, were you able to solve this issue? I'm using 'mocha-junit-reporter' with '--parallel' flag and getting the same error as in #4453 (comment) |
@boneskull I have run into some problem with the bundled Here are what I have found looking at the code and debugging:
First error:
Looking the code for Second error:
Here, Third "error": This is not an error, but the output for
Actual:
The problem is that Hook's state is missing in serialize. Adding |
I'm closing this issue. Mocha's own reporters |
Here is the screenshot of report in parallel mode
Here is the screenshot of same in serial mode
Here is the details of package.json files:-
{ "name": "playwrightmocha", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "chai": "^4.2.0", "mocha": "^8.1.3", "mochawesome": "^6.1.1", "playwright": "^1.4.2", "playwright-cli": "^0.5.2" }, "mocha": { "parallel": true, "reporter": [ "spec", "json", "mochawesome" ], "timeout": 300000 } }
The text was updated successfully, but these errors were encountered: