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

Report is generated in wrong path when no -f/--reportFilename specify on Windows

Open lhtrang opened this issue 3 years ago • 1 comments

Steps

Using GitBash

  1. git clone https://github.com/adamgruber/mochawesome-report-generator.git
  2. npm install -g mochawesome-report-generator (ver 5.2.0)
  3. cd mochawesome-report-generator
  4. marge test/sample-data/test.json -o test/report

Expected

✓ Reports saved: ...\mochawesome-report-generator\test\report\test.html

Actual

✓ Reports saved: ...\mochawesome-report-generator\test\report\test\sample-data\test.html

Note

On Linux it works well. On Windows I need to specify report file name: marge test/sample-data/test.json -o test/report -f test.html

lhtrang avatar Apr 09 '21 12:04 lhtrang

Thanks, works like a charm!

sajidbashir123 avatar Jan 26 '24 21:01 sajidbashir123