cypress-allure-plugin icon indicating copy to clipboard operation
cypress-allure-plugin copied to clipboard

Failure test cases are missing in the Allure report

Open varshanharshank opened this issue 1 year ago • 4 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.

varshanharshank avatar Apr 27 '23 01:04 varshanharshank

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.

PalmeiraGuilhermeTR avatar Apr 28 '23 00:04 PalmeiraGuilhermeTR

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.

Shelex avatar May 01 '23 17:05 Shelex

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

varshanharshank avatar May 02 '23 20:05 varshanharshank

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"

thuongdv avatar Jul 13 '23 02:07 thuongdv