cypress-multi-reporters icon indicating copy to clipboard operation
cypress-multi-reporters copied to clipboard

Feature: read reporter config from cypress config

Open cc-ebay opened this issue 5 years ago • 1 comments

We are running cypress on multiple localized version of the website.

It would be useful to be able to use plugins/index.js to set options for the reports.

For example with :

plugins/index.js:

module.exports = (on, config) => {
    
  // some logic to det `locale`

  config.mochawesomeReporterOptions = {
    reportDir: `.reports/${locale}`,
  }

  config.mochaJunitReporterReporterOptions = {
    mochaFile: `./junit-${locale}.xml`,
  }
  
   return config;
}

cc-ebay avatar Oct 22 '20 07:10 cc-ebay

Thanks for the report! Happy to accept contributions :)

YOU54F avatar May 05 '21 19:05 YOU54F

Will be archiving this repo today, thanks for the issue raising

Code is now held here https://github.com/YOU54F/cypress-plugins/tree/master/cypress-multi-reporters

YOU54F avatar Dec 09 '22 13:12 YOU54F