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

Support for message format (ndjson) produced by cucumber #1027

Open
bhreinb opened this issue Oct 15, 2021 · 3 comments
Open

Support for message format (ndjson) produced by cucumber #1027

bhreinb opened this issue Oct 15, 2021 · 3 comments

Comments

@bhreinb
Copy link
Contributor

bhreinb commented Oct 15, 2021

Hi there,

The cucumber framework produces a number of reports at the end of a test run which are listed here (https://cucumber.io/docs/cucumber/reporting/#built-in-reporter-plugins)

- message
- progress
- pretty
- html
- json
- rerun
- junit
- testng

The output of the json formatter is used to generate the nice html reports that come with this library. Unfortunately though that formatter is been deprecated

The built-in JSON formatter is deprecated and will be removed in a future release.

and the recommendation from cucumber is to upgrade libraries that currently use the output of the json formatter to use the ndjson file generated by the message formatter.

I imagine this to be a major change to the codebase but I'm wondering is their an intention to upgrade this library to support the ndjson file generated by the message formatter. Many thanks in advance and for the great library.

@damianszczepanik
Copy link
Owner

Don't have plan for that but will be happy to accept PR for that

@bhreinb
Copy link
Contributor Author

bhreinb commented Oct 19, 2021

I don't have capacity to take on this task atm however I could be open to doing this at a later point. I doubt a single PR will complete this activity namely I suspect multiple will be required as this is quite a big change.

I got some clarity from cucumber with regards the json formatter in that it won't be removed but it will go into maintenance mode hence the information per this link(https://cucumber.io/docs/cucumber/reporting/#built-in-reporter-plugins) has been updated since I originally created the GitHub issue.

@prasanmgc
Copy link

Hi @damianszczepanik , @bhreinb ,

I am currently using multiple cucumber html report and it uses json formatter. Json Formatter is unable to handle large json file. So the only option is to run the tests in smaller chunks.

Did you guys figured out a way to use ndjson for generating HTML report?

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

3 participants