cucumber / cucumber/cucumber-ruby
Deprecate "calling steps from step definitions" functionality
- 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
Assessment
This issue has not been assessed yet.