* Please describe which feature you have a question about? *
E2E testing with Cypress.
Link to guide provided by Amplify Team
* Provide additional details*
Error received when attempting to merge mocha reports generated by Cypress.
ERROR: Failed to merge reports
Error: Pattern --reportDir matched no report files
In the guide linked above the command npx mochawesome-merge --reportDir cypress/report/mochawesome-report/mochawesome*.json > cypress/report/mochawesome.json doesn't work after a breaking change to mochawesome-merge.
The fix is to omit --reportDir or to pin the version of mochawesome-merge to 3.0.0.
npx mochawesome-merge cypress/report/mochawesome-report/mochawesome*.json > cypress/report/mochawesome.json
Possibly related to:
@patleeman thanks for reporting this. We are actively working on solving this.
Thanks for the update @patleeman , an update has been provided in #115 , fix is pending release.
Closing. Please reopen if it is not fixed.
@patleeman I guess they dropped the --reportDir in version 4. I've checked the documentation and found this:
https://github.com/Antontelesh/mochawesome-merge#cli-1
@afsaneGhafouri Yeah, they removed it in this commit
Most helpful comment
@patleeman thanks for reporting this. We are actively working on solving this.