You are reading the documentation for gurkencheck 0.0.4. Go to the latest version.

gurkencheck A linter for Gherkin feature files.

no-files-without-scenarios

Flags a feature file that never tests anything.

What it does

A Feature with no Scenario runs no tests. It is usually a file someone started and did not come back to.

Turning it on

Add this to your .gurkencheckrc:

{
  "no-files-without-scenarios": "on"
}

Settings

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

Examples

Passes
Feature: Logging in

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

  A description of what we plan to test one day.

gurkencheck reports: Feature file does not have any Scenarios