Skip to main content

max-scenarios-per-file

Allows the user to specify the max number of scenarios per feature file.

Configuration

NameTypeDescriptionDefault
maxScenariosnumberThe maximum scenarios per file after which the rule fails10
countOutlineExamplesbooleanwhether to count every example row for a Scenario Outline, as opposed to just 1 for the whole blocktrue

Examples

Example

  • maxScenarios (number) the maximum scenarios per file after which the rule fails - defaults to 10
  • countOutlineExamples (boolean) whether to count every example row for a Scenario Outline, as opposed to just 1 for the whole block - defaults to true
{
"max-scenarios-per-file": [
"error",
{
"maxScenarios": 10,
"countOutlineExamples": true
}
]
}