Rule
Note: if you have Scenario
/ Scenario Outline
in your feature file but not inside a rule, they should be ordered before Rule
.
For example, if you write a feature like this:
Be careful, vitest-cucumber does not use indentation.
So, in this case I’m feature’s scenario Scenario
is also executed within the Rule
.
Rule example
Rule
is like a Feature
, you can declare the scenarios and their steps.
Hooks
If you set hooks BeforeEachScenario
and/or AfterEachScenario
inside describeFeature
.
They will be used in your rule(s) scenario(s).