Itβs pretty convenient to implement step definitions using the Groovy Script approach, but in this case itβs unclear whether Spring injection can be used or not.
In the case of Groovy Script there is no class, just a set of closures, for example:
this.metaClass.mixin(Hooks) this.metaClass.mixin(EN) Given(~/^we do something$/) { -> }
Can I use Spring with Groovy Script?
spring groovy cucumber cucumber-jvm
Xen
source share