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

make json formatter reusable outside cucumber-js #2239

Open
davidjgoss opened this issue Feb 12, 2023 · 0 comments
Open

make json formatter reusable outside cucumber-js #2239

davidjgoss opened this issue Feb 12, 2023 · 0 comments
Assignees
Labels
⚡ enhancement Request for new functionality

Comments

@davidjgoss
Copy link
Contributor

🤔 What's the problem you're trying to solve?

Other tools in the JavaScript ecosystem would like to be able to generate the legacy JSON format from messages, without asking their users to deal with the Go-based json-formatter - cucumber/json-formatter#13 (comment)

✨ What's your proposed solution?

  • Refactor the JSON formatter to just deal with messages, like e.g. the HTML one does, and the JUnit one eventually will. Do this in a way where it's reusable outside the context of cucumber-js i.e. just requiring messages and maybe query.
  • Probably publish it as a separate npm package
  • Maybe publish it in the mooted new plugin/formatter style - I'd like for formatters to be usable by any messages-emitting tool, not just cucumber-js.

⛏ Have you considered any alternatives or workarounds?

Doing nothing is another choice. But this helps the Cypress implementation and also helps move forward the new plugin/formatter system with something concrete.


This text was originally generated from a template, then edited by hand. You can modify the template here.

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

No branches or pull requests

1 participant