PhpStorm 2021.1 Help

Code Inspections in Cucumber

This topic lists all PhpStorm code inspections available in Cucumber.

You can toggle specific inspections or change their severity level on the Editor | Inspections page of the Settings/Preferences Ctrl+Alt+S.

InspectionDescriptionDefault Severity
Gherkin table is broken

Highlights tables if it contains at least one row with amount of cell different from amount of cell of table's header.

Error Error
Misplaced background section

Background section must be before any Scenario

Error Error
Missing ':' after examples keyword

Highlights examples sections in Cucumber .feature files which do not have ':' after the Examples keyword.

Error Error
Missing examples section

Highlights scenario outlines in Cucumber .feature files which do not have 'Examples' section.
Use a quick-fix to automatically create the Examples section with a pre-filled table header.

Error Error
Scenario with Examples section

Highlights Gherkin Scenarios having Examples section
Use a quick-fix to automatically convert Scenario to Scenario Outline.

Error Error
Undefined step

Highlights steps in Cucumber (or some other Gherkin) .feature files which do not have a matching step definitions.
Use a quick-fix to automatically create a new step definition.

Warning Warning
Unused or missing columns in Cucumber tables

Highlights tables in Examples sections of Cucumber .feature files with unused or missing columns.

Warning Warning
Last modified: 08 March 2021