Shelex / cypress-allure-plugin

cypress plugin to use allure reporter api in tests
https://shelex.github.io/cypress-allure-plugin-example/
Apache License 2.0
159 stars 44 forks source link

Failure test cases are missing in the Allure report #205

Open varshanharshank opened 1 year ago

varshanharshank commented 1 year ago

Describe the bug When we see the below kind of error and those failed cases are missing in the report. We are running all scripts in jenkins

image

To Reproduce Steps to reproduce the behavior: This issue is happening often for random test cases.

Expected behavior All failure test cases should be included in the report

Environment (please complete the following information):

Developer Tools Console Output

Additional context Add any other context about the problem here.

PalmeiraGuilhermeTR commented 1 year ago

I had this problem. My solution was to add the code to the e2e.ts file: Cypress.on("uncaught:exception", (err, runnable) => { // returning false here prevents Cypress from // failing the test return false; }); Hope this helps.

Shelex commented 1 year ago

Hi @varshanharshank

This issue is happening often for random test cases.

I have an example repo https://github.com/Shelex/cypress-allure-plugin-example where I am already checking that in case cypress crashes - the report will include some message that the crash occurred. However I am afraid that without reproducible steps I would not be able to address your specific case. Also please try latest version, as I do not remember if that feature was already implemented a year ago.

varshanharshank commented 1 year ago

I had this problem. My solution was to add the code to the e2e.ts file: Cypress.on("uncaught:exception", (err, runnable) => { // returning false here prevents Cypress from // failing the test return false; }); Hope this helps.

We already using this code and still seeing that error

thuongdv commented 1 year ago

I run into the same issue. My dependencies: