Amplify-console: Breaking change in mochawesome-merge affects cypress test step

Created on 7 Jan 2020  路  5Comments  路  Source: aws-amplify/amplify-console

* 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:

347

bug

Most helpful comment

@patleeman thanks for reporting this. We are actively working on solving this.

All 5 comments

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nomiddlename picture nomiddlename  路  4Comments

kontrol-debug picture kontrol-debug  路  4Comments

ericclemmons picture ericclemmons  路  5Comments

adamaltman picture adamaltman  路  3Comments

JIoJIaJIu picture JIoJIaJIu  路  5Comments