-
Notifications
You must be signed in to change notification settings - Fork 160
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
Generated HTML reports are empty when running from CI #282
Comments
Are you seeing any errors in the logs? |
I'm running through same problem, error logs below for your reference...
|
Looks like the
|
@sagaru @adamgruber I've added up to date information about the fixes to work with Mocha 6 in #269 . I've now implemented it as a non-breaking change :) so it can be used with mocha versions 6+ and below |
Mocha 6 introduced a new "stats-collector" that reporters have to manually instantiate in order to get stats. If running under Mocha 6 reporters that haven't done this will throw exceptions like `Cannot read property 'passes' of undefined` or `Cannot read property 'failures' of undefined`. fixes adamgruber#269 fixes adamgruber#282
Mocha 6 introduced a new "stats-collector" that reporters have to manually instantiate in order to get stats. If running under Mocha 6 reporters that haven't done this will throw exceptions like `Cannot read property 'passes' of undefined` or `Cannot read property 'failures' of undefined`. fixes adamgruber#269 fixes adamgruber#282
Hi everyone, It seems cleaning assets folder inside the report folder can resolve the issue. It won't regenerate the content of the asset if it already exists (Can't recognize the assets belongs to older versions of mochawesome or MARGE?!?!?!?). |
@adamgruber @yoursmunnisha me to facing same issue .json file have data but html file do not shows any data. and when trying to see the html file from editor, throws below error- if any pointers, please let me know. |
Describe the bug
Hi!
When I am running my tests locally, then merging and marging my json to html files works fine (I do have to use the Bash terminal, as I am on windows, else I would run into json parsing errors).
However, when i try to do this from Gitlab CI it does generated an HTML report as an artifact, but it remains empty..
Code Reproduce
Yml file:
cypress-e2e:
image: cypress/base:10
stage: test
script:
- npm run cy:run:staging
- npx mochawesome-merge — reportDir mochawesome-report > mochawesome-report/output.json
- npx marge mochawesome-report/output.json
artifacts:
paths:
- mochawesome-report/output.html
expire_in: 1 week
Expected behavior
A fully loaded HTML file with content of the tests.
Screenshots
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: