Provide Cucumber users the ability to create locally scoped step definitions and methods such that they are only usable from within one feature. In the style of Spinach.
1
stars
2
forks
source link
Local steps are labeled in grey with feature file line numbers instead of ruby file line numbers #3
Scenario: Send a message # features/messager.feature:3
Given I have initiated a messaging session with a friend # features/step_definitions/messager_steps.rb:6
When I enter a message # features/step_definitions/messager_steps.rb:10
And press Send # features/step_definitions/messager_steps.rb:13
Then my friend receives the message # features/step_definitions/messager_steps.rb:17
Observed output:
Scenario: Send a message # features/messager.feature:3
Given I have initiated a messaging session with a friend # features/messager.feature:4
When I enter a message # features/messager.feature:5
And press Send # features/messager.feature:6
Then my friend receives the message # features/messager.feature:7
Expected output:
Observed output: