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 IDE settings Ctrl+Alt+S.
Inspection | Description | Default 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 |
Misplaced background section | Background section must be before any Scenario | Error |
Missing ':' after examples keyword | Highlights examples sections in Cucumber .feature files which do not have ':' after the | Error |
Missing examples section | Highlights scenario outlines in Cucumber .feature files which do not have 'Examples' section. | Error |
Scenario with Examples section | Highlights Gherkin Scenarios having Examples section | Error |
Undefined step | Highlights steps in Cucumber (or some other Gherkin) .feature files which do not have a matching step definitions. | Warning |
Unused or missing columns in Cucumber tables | Highlights tables in Examples sections of Cucumber .feature files with unused or missing columns. | Warning |