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

gurkencheck A linter for Gherkin feature files.

no-scenario-outlines-without-examples

Flags a Scenario Outline with no rows to run.

What it does#

A Scenario Outline is a template. Without an Examples table holding at least one row there is nothing to fill it in with, so the scenario never runs.

Turning it on#

Add this to your .gurkencheckrc:

{
  "no-scenario-outlines-without-examples": "on"
}

Settings#

This rule has no settings. Switch it on with "no-scenario-outlines-without-examples": "on".

Examples#

Passes
Feature: Logging in

  Scenario Outline: Logging in as <role>
    Given I am a <role>

    Examples:
      | role  |
      | admin |
Fails
Feature: Logging in

  Scenario Outline: Logging in as <role>
    Given I am a <role>

    Examples:
      | role |

gurkencheck reports: Scenario Outline does not have any Examples