use-and
Use And instead of repeating a keyword.
What it does
Two Givens in a row read like two separate setups. Writing the second as And makes it clear they belong together.
Turning it on
Add this to your .gurkencheckrc:
{
"use-and": "on"
}
Settings
This rule has no settings. Switch it on with "use-and": "on".
Examples
Passes
Feature: Logging in
Scenario: A known user logs in
Given I am a known user
And I am on the login page
When I log in
Then I see my dashboard
Fails
Feature: Logging in
Scenario: A known user logs in
Given I am a known user
Given I am on the login page
When I log in
Then I see my dashboard
gurkencheck reports: Step "Given I am on the login page" should use And instead of Given