adamgruber / mochawesome-report-generator

Standalone mochawesome report generator. Just add test data.
MIT License
234 stars 89 forks source link

html file always lands inside additional "results" director and assets are not reachable #139

Open Lukaszli opened 4 years ago

Lukaszli commented 4 years ago

How can I save html report to a specific location?

For example ./results/html-report Analogically assets dir should land in ./results/html-report next to result.html but the generator is always putting additional dir inside, like this: /results/html-report/results/report.html

and assets are one dir up in:

./results/html-report/assets

Which is breaking html file paths.

package.json: "mocha": "^6.2.2", "mochawesome": "^4.1.0", "mochawesome-merge": "^2.1.0", "mochawesome-report-generator": "^4.0.1",

Unfortunatel I am working on Windows 10.

I know I can call flag --inline to work around this problem.

ghost commented 4 years ago

Hi i have the same problem. To solve this issue use -f option to override the file name. For example: npx marge cypress/reports/json/bundle.json -o cypress/reports/html -f test_result --cdn

give me the response

✓ Reports saved: C:\workspace\repos\mfw-ng\cypress\reports\html\test_result.html

I hope it helps. Regards.