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 import 'pickle' and 'event' in Cucumber V7? #1538

Closed
VivekLande opened this issue Jan 14, 2021 · 3 comments
Closed

How to import 'pickle' and 'event' in Cucumber V7? #1538

VivekLande opened this issue Jan 14, 2021 · 3 comments
Labels
❓ question Consider using support forums: https://cucumber.io/tools/cucumber-open/support

Comments

@VivekLande
Copy link

Hi,

I am migrating cucumber from V6 to V7. In V7 you have removed @type/cucumber from where in V6 we were importing 'pickle' and 'event' object which is not a case in V7. I can't find exports for these objects and many others.

Could you please suggest?

Thank you.

@VivekLande VivekLande changed the title How to import pickle and event in Cucumber V7? How to import 'pickle' and 'event' in Cucumber V7? Jan 14, 2021
@VivekLande
Copy link
Author

Hello,

Can someone please help and suggest?

@aslakhellesoy aslakhellesoy added the ❓ question Consider using support forums: https://cucumber.io/tools/cucumber-open/support label Feb 2, 2021
@yopasa94
Copy link

Did you try with PickleFilter from @cucumber/cucumber ?

@davidjgoss
Copy link
Contributor

Sorry for the late reply @VivekLande.

With "pickle", there is a new object structure for that which is part of the standardised messages schema now. This is the pickle that is part of the result object passed to your After hook function. I've described the change a bit in #1692 including a link to its schema definition.

The model for events changed completely as part of 7.0.0, so the previous events described in the @types/cucumber package are no longer emitted, and now we emit envelope events, each containing a standardised message object. If you have any issues using the messages to e.g. build a formatter, please drop a question in the Slack or forum and you should get some help. The built-in formatters are a good reference point for this also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Consider using support forums: https://cucumber.io/tools/cucumber-open/support
Projects
None yet
Development

No branches or pull requests

4 participants