mochawesome report with date and time
senthkum opened this issue · comments
Hi Team,
I am trying to run my cypress script and I want the report to have with the date and timestamp. I had tried multiple options and it did not work. Can you please help me with this issue?
Here I want the date-time after CreateUser-02182021.html
"sample": "npm run runHeaded -- --spec '.\cypress\integration\WebShop-SimpleFramework\PractiseScripts\sample.js' --reporter-options reportFilename=CreateUser-${NOW}"
"sample": "npm run runHeaded NOW=$(date +%s) && mocha -- --spec '.\cypress\integration\WebShop-SimpleFramework\PractiseScripts\sample.js' --reporter-options reportFilename=CreateUser-${NOW}"
Please look at the documentation for the timestamp
option. https://github.com/adamgruber/mochawesome-report-generator#timestamp