1

Currently I have two separate scripts:

"p1_testRail": "cypress run -r cypress-testrail-accumulative-reporter {arguments} {test_suites} --headless"

"p1_mochawesome": "cypress run -r cypress-multi-reporters {arguments} {test_suites} --reporter mochawesome"

But I want to be able to run a single cypress script and get the report generated for both testrail and mochawesome. Do we have any way to be able to pass multiple arguments for a --reporter & -r?

NOTE: && would still run it one after another. That means, test suite will run twice. Instead, I want to run test suite once and update both the reporters at the same time.

Meg
  • 55
  • 7
  • See [cypress-multi-reporters - Configuring reporters](https://github.com/you54f/cypress-multi-reporters#configuring-reporters) in reporterEnabled try replacing `@my-org/custom` with `cypress-testrail-accumulative-reporter`. No idea if the testrail adapter is compatible, but easy to check out. –  Jan 14 '21 at 19:10
  • @HiramK.Hackenbacker, thanks for suggestion. I did already include as following but it doesn't make difference while using it in one single report- "reporter": `"cypress-testrail-accumulative-reporter, cypress-multi-reporters", "reporterEnabled": "cypress-testrail-accumulative-reporter, mochawesome"` – Meg Jan 21 '21 at 21:53
  • Unfortunately, adding "cypress-testrail-accumulative-reporter, cypress-multi-reporters" this did not help it – Meg Feb 10 '21 at 04:49

0 Answers0