LironEr / cypress-mochawesome-reporter

Zero config Mochawesome reporter for Cypress with screenshots and videos
MIT License
159 stars 49 forks source link

unable to access index.json created by mochawesome for parsing #57

Closed mudit94 closed 2 years ago

mudit94 commented 2 years ago

Hi Team, I want to include the total test count, passed count and failed count in a email . i am triggering the cypress test from a jenkins/gitlab pipeline I am unable to access index.json created by mochawesome reporter which i want to parse to draft the email

LironEr commented 2 years ago

What do you mean by you cant access index.json? Please add more info, add your cypress.json contents

adassoul commented 2 years ago

Hello, I was looking in the issues to find an issue like mine. I think this one is related : I don't get .html files but .json files. Is this normal ?

adassoul commented 2 years ago

//cypress.json { "reporter":"cypress-mochawesome-reporter", "reporterOptions": { "reportDir": "cypress/reports", "charts": true, "reportPageTitle": "My Test Suite", "embeddedScreenshots": true, "inlineAssets": true }, "retries": { "runMode": 2, "openMode" : 2 }, "ignoreTestFiles": [ "variables*", "test*", "url_apiCalls.json" ], "videoCompression": 1, "failOnStatusCode": false }

LironEr commented 2 years ago

@adassoul no, you should get an HTML file. Please add debug: true to reporterOptions and add here the log file

adassoul commented 2 years ago

@LironEr i am telling you that i did add this option but i don't get the debug log. Where should it be?

LironEr commented 2 years ago

In the same folder as your package.json. If you don't find the debug file please create a repo with the problem so I can have a look.

Thanks

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.