|
|
|
|
|
by jms_
4649 days ago
|
|
Given that the system these scenarios test also manage state, it's not surprising that the step definitions used in the scenario also need to manage some form of state. While it's advisable to avoid unnecessary state between steps in a scenario like this, removing all state limits the ability for a scenario to express the intent the author speaks about. |
|
> removing all state limits the ability for a scenario to express the intent the author speaks about.
However, writing them like that means each step moves further away from what it says it's doing. The more you do this, the more you might as well not execute them and go and write more examples.