cucumber-ruby: Running Scenario by line number from within Scenario doesn't work
Summary
I used to be able to run cucumber feature_file_name.feature:XX with XX being a line anywhere in the scenario (usually the line that failed last time, to easily re-run a failure) but now it only works if XX is the number of the “Scenario” heading line.
Expected Behavior
cucumber feature_file_name.feature:XX should run the Scenario, from the beginning, that contains line XX.
Current Behavior
The Scenario does not run, and the following output is produced.
0 scenarios
0 steps
0m0.000s
Steps to Reproduce (for bugs)
- Run any Scenario (with
cucumber feature_file_name.feature:XX) from the command line, tagging the line number of any line within the scenario other than the “Scenario” heading
Your Environment
ruby 2.7.1 MacOS 10.15.6 cucumber-rails 2.1 cucumber 4.1.0
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 4
- Comments: 36 (32 by maintainers)
Commits related to this issue
- Restore support for matching a scenario by its steps' line numbers. Ref https://github.com/cucumber/cucumber-ruby/issues/1469 — committed to botandrose/cucumber-ruby-core by botandrose-machine 2 years ago
- Restore support for matching a scenario by its steps' line numbers. Ref https://github.com/cucumber/cucumber-ruby/issues/1469 — committed to botandrose/cucumber-ruby-core by botandrose-machine 2 years ago
- Restore support for matching a scenario by its steps' line numbers. Ref https://github.com/cucumber/cucumber-ruby/issues/1469 — committed to botandrose/cucumber-ruby-core by botandrose-machine 2 years ago
- Restore support for matching a scenario by its steps' line numbers. Ref https://github.com/cucumber/cucumber-ruby/issues/1469 — committed to botandrose/cucumber-ruby-core by botandrose-machine 2 years ago
- Restore support for matching a scenario by its tags' and steps' line numbers. (#238) * Restore support for matching a scenario by its steps' line numbers. Ref https://github.com/cucumber/cucumber-... — committed to cucumber/cucumber-ruby-core by botandrose-machine 2 years ago
@luke-hill From my brief experimentation, no, there has been further regression of the line number functionality. Every line number I tried resulted in 0 scenarios, and I tried line numbers for tags, features, scenarios, and steps.
Additionally, running
:1used to run all scenarios, now it runs zero.