mochawesome-report-generator icon indicating copy to clipboard operation
mochawesome-report-generator copied to clipboard

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

Open Lukaszli opened this issue 4 years ago • 1 comments

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.

Lukaszli avatar Nov 28 '19 16:11 Lukaszli

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.

ghost avatar Jan 03 '20 09:01 ghost