Shelex / cypress-allure-plugin

cypress plugin to use allure reporter api in tests

Home Page:https://shelex.github.io/cypress-allure-plugin-example/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failure test cases are missing in the Allure report

varshanharshank opened this issue · comments

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

  • Cypress version: 12.7.0
  • OS: Mac
  • @shelex/cypress-allure-plugin: 2.28.0
  • badeball/cypress-cucumber-preprocessor: 15.0.0

** Developer Tools Console Output **

Additional context
Add any other context about the problem here.

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.

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.

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

I run into the same issue.
My dependencies:

  • "@badeball/cypress-cucumber-preprocessor": "16.0.3"
  • "@shelex/cypress-allure-plugin": "2.40.0"
  • "cypress": "12.10.0"