Skip to content

Deprecate "calling steps from step definitions" functionality #1362

@aslakhellesoy

Description

@aslakhellesoy

Summary

Calling steps from step definitions is one of the features I regret having added to Cucumber. It's like a poor man's implementation of subroutines (which all languages support natively) with the following drawbacks:

  • Bad stacktraces
  • Editor/IDE cannot spot errors
  • Refactoring is painful

Using this functionality should print:

Calling steps from step definitions is deprecated and will be removed in the next major version. For a better alternative, follow this link: XXX

The XXX link should point to a page in the documentation explaining in more details how to use fiunctions/methods with Cucumber. It can be based on the explanation I gave in cucumber/cucumber-js#1232

Metadata

Metadata

Assignees

No one assigned

    Labels

    💔 breaking changeThis will require a major release🥒 core teamCandidate for going onto the Cucumber Open Board: https://github.com/orgs/cucumber/projects/8🧷 pinnedTells Stalebot not to close this issue

    Type

    No type

    Projects

    Status

    Next

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions