max-scenarios-per-file
Allows the user to specify the max number of scenarios per feature file.
Configuration
Name | Type | Description | Default |
---|---|---|---|
maxScenarios | number | The maximum scenarios per file after which the rule fails | 10 |
countOutlineExamples | boolean | whether to count every example row for a Scenario Outline, as opposed to just 1 for the whole block | true |
Examples
Example
maxScenarios
(number) the maximum scenarios per file after which the rule fails - defaults to10
countOutlineExamples
(boolean) whether to count every example row for a Scenario Outline, as opposed to just 1 for the whole block - defaults totrue
{
"max-scenarios-per-file": [
"error",
{
"maxScenarios": 10,
"countOutlineExamples": true
}
]
}