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

Formatter for "Message" format NDJSON #1142

Open
Johnlon opened this issue Sep 25, 2023 · 4 comments
Open

Formatter for "Message" format NDJSON #1142

Johnlon opened this issue Sep 25, 2023 · 4 comments
Labels

Comments

@Johnlon
Copy link

Johnlon commented Sep 25, 2023

Are there plans to create an output format for the Envelope data type as described here
https://github.com/cucumber/messages

I need compatbility with cucumber "message" format and the ability to reuse things like the cucumber-js report formats.

@jenisys
Copy link
Member

jenisys commented Oct 3, 2023

Currently, there exists no development effort to support such a formatter.
This may change in the future.

REASONS:

  • In cucumber, Cucumber Messages are used as internal protocol between different parts of the framework implementation (as it needs a modular internal structure).
  • behave has currently no such needs (except: You want to use Cucumber Reports ).

OTHERWISE:

  • Formatters are an extension point in behave. Therefore, you can provide your own Formatter classes and use it in behave.
  • If it is important for you, provide a pull-request with its Formatter implementation.

SEE ALSO:

@Johnlon
Copy link
Author

Johnlon commented Oct 4, 2023 via email

@jenisys
Copy link
Member

jenisys commented Oct 13, 2023

  • cucumber has its reasons why it does that and
  • behave has its reasons why it does not do it, too (unnecessary overhead, unneeded complexity)

As already stated: If Cucumber Messages are important for you, provide a pull-request for such a Formatter (or provide your own). Otherwise, wait until it is supported in behave (but then it is not important for you IMHO).

@Johnlon
Copy link
Author

Johnlon commented May 11, 2024

I am currently adding ndjson support to godog using the cucumber compatibility kit.

As you stated that reason for wanting same on behave is to be able to reuse the widest variety of tools around my tests.

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

No branches or pull requests

2 participants