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

How to get a single cucumber.json file aggregate all features #423

Closed
hiaux0 opened this issue Jul 30, 2020 · 3 comments
Closed

How to get a single cucumber.json file aggregate all features #423

hiaux0 opened this issue Jul 30, 2020 · 3 comments

Comments

@hiaux0
Copy link

hiaux0 commented Jul 30, 2020

Documentation

In this section from the Readme

The cypress-cucumber-preprocessor can generate a cucumber.json file output [...]

but

Output, by default, is written to the folder cypress/cucumber-json, and one file is generated per feature.

Issue

I wasn't able to figure out how I could get a single file with all features included.
I even digged a bit in the source code, which led me to writeCucumberJsonFile, where the json files are generated.
For example in pure cucumber-js, I could get single json file
https://github.com/hiptest/hps-cucumber-javascript#run-tests

Exampe repo used

https://github.com/TheBrainFamily/cypress-cucumber-example

Any help is greatly appreciated

Thanks,
Hiau

@hiaux0 hiaux0 changed the title How to get a single cucumber.json file How to get a single cucumber.json file aggregating all features Jul 30, 2020
@hiaux0 hiaux0 changed the title How to get a single cucumber.json file aggregating all features How to get a single cucumber.json file aggregate all features Aug 3, 2020
@malt-man
Copy link

malt-man commented Nov 6, 2020

👍 This would be really useful - I'm facing the same issue.

@AlexMurphy
Copy link

I've spent a while trying to do just this but for now I'm using a hook that clears the folder before the test runs and a hook that runs after the test that grabs the last json file in the folder (just to make sure its the right one) and does the necessaries.
Hope this helps.

@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.

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

4 participants