adamgruber / mochawesome

A Gorgeous HTML/CSS Reporter for Mocha.js

Home Page:https://gitter.im/mochawesome/general

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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