forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Upgrade guide from TheBrainFamily/cypress-cucumber-preprocessor
#689
Comments
badeball
changed the title
Draft: upgrade guide
Upgrade guide from Apr 10, 2022
TheBrainFamily/cypress-cucumber-preprocessor
This was referenced Apr 10, 2022
Closed
Closed
Closed
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
3 tasks
Closed
3 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Transfer of ownership
Due to personal reasons, the previous maintainers of this package are stepping down and handing the reigns over to me, a long-time contributor to the project and a user of it myself. This is a responsibility I'm very excited about. Furthermore, I'd like to thank @lgandecki ++ for all the work that they've done so far.
What's new 🎉
This implementation has been re-written from scratch in TypeScript, has more thorough test coverage and is filled with a bunch of new feature.
Support for the
Rule
keyword.The
cypress-tags
has been removed and made redundant. Specs containing no matching scenarios are automatically filtered, provided thatfilterSpecs
is set totrue
.Screenshots are automatically added to JSON reports (including that of failed tests).
Other attachments can be added to the report.
JSON reports are generated as a single file and manual, post-merging is no longer required.
The package is now located under the name
@badeball/cypress-cucumber-preprocessor
and a deprecation notice will be posted in the old name once NPM transfer is complete.Methods such as
Given
,When
andThen
are imported from@badeball/cypress-cucumber-preprocessor
, IE. without the../steps
postfix.A large number of issues has implicitly been fixed due to architectural changes.
And(..)
andBut(..)
have been deprecated, read more here.What's missing
Changes to configuration
Nearly all configuration options has been removed and there's no distinction between "global" and "non-global" steps anymore. Steps are searched for using patterns and you can chose to include global steps or not.
Below are some configuration examples. Configuration is still implemented using cosmiconfig, meaning that your configuration can reside in multiple locations, such as
package.json
or.cypress-cucumber-preprocessorrc.json
.Global step definitions exaple
Step definitions besides scenario
Step definitions in a directory besides the scenario
Combination of all of the above (default)
Still have an issue?
Because this is a re-implementation and thorough test coverage was originally lacking, old issues may resurface and new issue arise. If you have an issue or just a question, please post it below and I'll try to help.
The text was updated successfully, but these errors were encountered: