You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before Cucumber Scala 5.x, glue classes (classes extending `ScalaDsl`) were instantiated only once for a test suite.
43
+
44
+
This means that if you wanted to keep state between steps of your scenarios, you had to make sure the state was not shared to other scenarios by using hooks or manual checks.
45
+
46
+
Starting from Cucumber Scala 5.x, **each scenario creates new glue class instances**.
47
+
48
+
You should not notice any change unless you rely on state kept between scenarios in your glue classes.
49
+
Please note that this is not the proper way to keep a state.
50
+
You might want to use an `object` for this purpose.
0 commit comments