multiple-cucumber-html-reporter icon indicating copy to clipboard operation
multiple-cucumber-html-reporter copied to clipboard

Support for Cucumber v8 NDJSON

Open humphreyn opened this issue 2 years ago • 4 comments

The JSON formatter in version 8 of Cucumber is in maintenance mode and will at some point be deprecated.

The JSON formatter is to be replaces with the new Message formatter that aims to address a number of shortcomings such as a high memory footprint and a lack of a formal schema.

Given that the JSON formatter is no longer being developed and will be deprecated, will you be looking to support the new NDJSON format that is created by the message formatter?

humphreyn avatar Jun 13 '22 10:06 humphreyn

Hi @humphreyn

Thanks for this heads up. For now I don't have it on my to-do list, but love to look into it. Do you have some more information about the format?

wswebcreation avatar Jun 13 '22 10:06 wswebcreation

@wswebcreation JSON Formatter is in maintenance mode and no new features will be added. At the moment, it couldn't handle large json files for report generation. Is it possible to use the ndjson file that cucumber generates at the end of test execution to be consumed by this plugin? It would definitely save lot of time for all?

prasanmgc avatar Sep 06 '22 11:09 prasanmgc

Sure, we can, any help, more docs and so on would be appreciated

wswebcreation avatar Sep 10 '22 06:09 wswebcreation

@wswebcreation each line is a well-formed json item so other libs basically parse like that. Alternatively there are deps available but from a quick skim it doesn't seem like they are doing anything fancier worth a new dependency.

BaCaRoZzo avatar Sep 24 '22 07:09 BaCaRoZzo