cucumber / cucumber/cucumber-ruby

Deprecate "calling steps from step definitions" functionality

Open
#1,362 29 comments 8 reactions 0 assignees View on GitHub
:broken_heart: breaking change :cucumber: core team :safety_pin: pinned
Dominant language
Ruby
Stars
5.2k
Forks
1.1k
Avg merge
1d 16h
Merged PRs (30d)
3

Description

## 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 https://github.com/cucumber/cucumber-js/issues/1232

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.