adamgruber / mochawesome

A Gorgeous HTML/CSS Reporter for Mocha.js
https://gitter.im/mochawesome/general
MIT License
1.06k stars 160 forks source link

report showing no test information when running mocha in parallel mode #321

Closed stefanomartinelli closed 3 years ago

stefanomartinelli commented 4 years ago

Mocha Version: 8.0.1 Mochawesome: 6.1.1

I'm having some trouble displaying test results in the HTML file when running Mocha in parallel mode which was added in version 8.

The Mochawesome report still works when not running Mocha in parallel mode.

No tests show in the main panel at all. In the top header, it shows all my tests are pending (despite passing when they were ran) even clicking this pending icon does not show any test information.

Screenshot 2020-06-17 at 12 11 51

image

So I did the JSON export of when running mocha in both parallel and not and compared and I found that in the parallel JSON:

Not sure if the fix is with you or with Mocha (feel free to close if it is) though I would highlight it all the same

adamgruber commented 4 years ago

Thanks for raising this issue. I'll have to dig into how the reporter should work with parallel mode but that could take a fair bit of time.

fr-kqkq commented 4 years ago

Same issue.

dsw6 commented 4 years ago

same problem

tengel92 commented 4 years ago

Is there any estimate of when this will be fixed in Mochawesome?

adamgruber commented 4 years ago

No estimate. I haven’t had much time to work on this project lately but I’ll gladly review any PRs.