https://cypress.io logo
Mocha report with Cypress Parallel running
# i-need-help
l
My repo has 1000 tests , so we use parallization and tagging in Jenkins with 4 tags I use cypress-multi-reporters and cypress-mochawesome-reporter. At the end of Jenkins build, 4 reports are generated ( html and mocha.json ) and saved in nexus. Is it possible to extract stats from mocha.json (from all 4 reports) and send only 1 email . Only stats of each tag is enough in email Thanks Gayathri
e
I've never used
cypress-multi-reporters or cypress-mochawesome-reporter.
but when I had multiple coverage reports generated for a parallel run, I did created a
after:run
event that persists the coverage report for that particular machine to a local test folder. I then created a job in my CI after all the test jobs had finished which reads from that test folder and loops through all the persisted coverage reports and merges them together into one. Again, I'm not sure what those plugins can do or how they handle reports but I think this same approach might be what you are looking for. It does require some custom implementation though.