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

Fails to generate cucumber-json files for all the test cases. Missed jsons !! #459

Closed
pvishnu991 opened this issue Oct 19, 2020 · 6 comments

Comments

@pvishnu991
Copy link

Current behavior

The cypress-cucumber-preprocessor plugin fails to generate the json files for all the test cases under cucumber-json folder within cypress!!
Our project makes use of BDD structure wherein multiple feature files has been created for the test scenarios and whilst executing a bulk regression run it skips a few json files within the folder cucumber-json!!

image

Jsons generated : 113
image

Totals features picked up: 123
image

Feature file example: tags has been used at a feature level which picks up all the 123 tests but generates only jsons for 113 and 10 are skipped. The same has been observed over multiple runs wherein it misses some of the json files.
image

Desired behavior

The cucumber-json folder should contain all the json files for all the features executed.

Versions

  • Cypress version: 4.3.0
  • Preprocessor version: 3.0.0
  • Node version: v12.16.2
@zamioku
Copy link

zamioku commented Nov 19, 2020

Hello,

I have the same issue when running features that contain Scenario Outlines with multiple examples.

If an example fails in the scenario outline, only 1 .json is generated per scenario outline, for the example that failed.

Versions:

  • Cypress version: 5.6.0
  • Preprocessor version: 4.0.0
  • Node version: v12.18.3

@saint88
Copy link

saint88 commented Dec 16, 2020

Hello.
I have the same issue too when running features and getting timeout error in cy.visible().

Versions:

Cypress version: 6.0.0

Preprocessor` version: 4.0.0

Node version: v11.7.0

@zamioku
Copy link

zamioku commented Dec 17, 2020

Issue still occurs in Cypress version 6.1.0

I've noticed that at least 1 .json per feature file is generated, but not for all scenarios or examples regardless of pass/fail

I suspect the .json is being overwritten but I can't figure out why or how to debug.

@EagleEyeGH
Copy link

I've noticed that feature files that include a dot are not named correctly (2.1 becomes 2) which causes 2.2 for example to overwrite the 2.cucumber.json

lgandecki pushed a commit that referenced this issue Mar 23, 2021
…mocha runner fail event

it seems that cypress fail event could have only one listener and in case user has own or other
plugins use it cucumber json will be missing results for failed tests as this event is not emitted

re #459, re#454, re#417, re#348
@badeball
Copy link
Owner

Due to personal reasons, the previous maintainers of this package are stepping down and handing the reigns over to me, a long-time contributor to the project and a user of it myself. This is a responsibility I'm very excited about. Furthermore, I'd like to thank @lgandecki ++ for all the work that they've done so far.

Read more about the transfer of ownership here.

The repository has however moved and all outstanding issues are being closed. This is not a reflection of the perceived importance of your reported issue. However, if after upgrading to the new version, you still find there to be an issue, feel free to open up another ticket or comment below. Please make sure to read CONTRIBUTING.md before doing so.

@archanaravikumar9512
Copy link

Hello,
I have the same issue with "cypress-cucumber-preprocessor": "^4.3.1". Anyone found a solution for the 4.3.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants