Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure test cases are missing in the Allure report #205

Open
varshanharshank opened this issue Apr 27, 2023 · 4 comments
Open

Failure test cases are missing in the Allure report #205

varshanharshank opened this issue Apr 27, 2023 · 4 comments
Labels
bug Something isn't working cucumber-preprocessor

Comments

@varshanharshank
Copy link

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 varshanharshank added the bug Something isn't working label Apr 27, 2023
@PalmeiraGuilhermeTR
Copy link

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
Copy link
Owner

Shelex commented May 1, 2023

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
Copy link
Author

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
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cucumber-preprocessor
Projects
None yet
Development

No branches or pull requests

4 participants