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

Using a deprecated version of cucumber #98

Closed
jeff-shep opened this issue Jan 6, 2021 · 3 comments
Closed

Using a deprecated version of cucumber #98

jeff-shep opened this issue Jan 6, 2021 · 3 comments

Comments

@jeff-shep
Copy link

Intend to use this library to migrate from protractor to testcafe for running our existing test suite. Just trying to set things up and convert one of our tests as a proof of concept, after installing the libraries as documented I get a Cannot find module 'cucumber' error. Should this package be using @cucumber/cucumber now, or am I missing something obvious? I can install cucumber as peer dependency to resolve it but this isn't a desired approach. As we get more familiar with this package, happy to contribute but just a question for now 😃

@Marketionist
Copy link
Owner

Hello @jeff-shep,

Thanks for reaching out!

This library is tested to work with Cucumber versions 5 and 6 (they are stable and continue to be maintained - https://github.com/cucumber/cucumber-js#install). Cucumber 7 is quite new (https://github.com/cucumber/cucumber-js/blob/master/CHANGELOG.md#700-2020-12-21) and has a number of breaking changes, so as far as I know it's not supported by gherkin-testcafe for now.

testcafe-cucumber-steps uses gherkin-testcafe (https://www.npmjs.com/package/gherkin-testcafe - a package recommended by TestCafe team DevExpress/testcafe#1373 (comment)) to glue testcafe with cucumber together.

For the dependencies - as listed in peerDependencies of testcafe-cucumber-steps (https://github.com/Marketionist/testcafe-cucumber-steps/blob/master/package.json#L46), you will have to include 3 dependencies. To get them installed and saved to your package.json, in your project's root folder execute:

npm install [email protected] testcafe gherkin-testcafe --save-dev

I just updated the installation instructions accordingly (https://github.com/Marketionist/testcafe-cucumber-steps#installation-detailed). Please let me know if that works ok for you.

@jeff-shep
Copy link
Author

Thanks for the clarification @Marketionist, I've got testcafe-cucumber-steps running now and really keen to migrate to predefined steps and make my life easier, thank you publishing this package!

@Marketionist
Copy link
Owner

Great, I'm happy to hear that!

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

2 participants