adamgruber / mochawesome-report-generator

Standalone mochawesome report generator. Just add test data.
MIT License
231 stars 90 forks source link

Failing to use [name] for reportFilename #212

Open KRajeshBabu opened 1 year ago

KRajeshBabu commented 1 year ago

With below config, report file is getting file name _[name]-ui_automation_02092023230625.html. I am expecting something like _smoke-ui_automation_02092023230625.html for file cypress\e2e\native\smoke\smoke.cy.js.

reporter: 'cypress-mochawesome-reporter',
    reporterOptions: {
        reportFilename: '[name]-ui_automation',
        reportPageTitle: 'UI Test Automation Report',
        timestamp: 'mmddyyyy_HHMMss'
    }
adamgruber commented 1 year ago

I created a small example using your config and it is working: ma-cypress.zip