Skip to content

scenario-size ​

Limit the number of steps in a Scenario.

CategoryRecommendedSafe autofixDefault options
structurenono{"maxSteps":12}

Limits direct Scenario steps, not Background steps.

Configuration ​

json
{ "rules": { "scenario-size": ["error", {"maxSteps":12}] } }

Triggered by ​

text
Scenario: long flow
  Given one
  When two
  Then three

Released under the MIT License.