integration testing - Cypress multi reporters: using mochawesome with autoset-status-cypress-testrail-reporter - Stack Overflow

PHOTO EMBED

Tue May 14 2024 08:21:21 GMT+0000 (Coordinated Universal Time)

Saved by @al.thedigital #cypress #config #plugins #add

OPTION 1 - to include only the below in cypress.json:

"reporter": "cypress-multi-reporters",
"reporterOptions": {
  "configFile": "reporter-config.json"
}
 Save
Then to create a new file called reporter-config.json, and add the config for each reporter in there:

{
  "reporterEnabled": "mochawesome, autoset-status-cypress-testrail-reporter",
  "mochawesomeReporterOptions": {
    "reportDir": "cypress/reports",
    "overwrite": false,
    "html": true,
    "json": false
  },
  "autosetStatusCypressTestrailReporterReporterOptions": {
    "host": "https://xxxxxx/",
    "username": "xxxxx",
    "password": "xxxx",
    "projectId": 1,
    "runId": 1234
  }
}
content_copyCOPY

https://stackoverflow.com/questions/73729492/cypress-multi-reporters-using-mochawesome-with-autoset-status-cypress-testrail