adamgruber / mochawesome-report-generator

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

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

Open lhtrang opened 3 years ago

lhtrang commented 3 years ago

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

sajidbashir123 commented 10 months ago

Thanks, works like a charm!