You are reading the documentation for gurkencheck 0.0.9. Go to version 0.0.10.

gurkencheck A linter for Gherkin feature files.

no-unnamed-scenarios

Every Scenario needs a name.

What it does#

The scenario name is what you see when a test fails. Without one you have to open the file to find out what broke.

Turning it on#

Add this to your .gurkencheckrc:

{
  "no-unnamed-scenarios": "on"
}

Settings#

This rule has no settings. Switch it on with "no-unnamed-scenarios": "on".

Examples#

Passes
Feature: Logging in

  Scenario: A known user logs in
    Given I am a known user
Fails
Feature: Logging in

  Scenario:
    Given I am a known user

gurkencheck reports: Missing Scenario name