Hi,
I wonder if it's possible to create spock test without extension of Specification class - something like @Test junit annotation or similar.
My use case:
I have a hierarchy of abstract test classes written in java (and placed in external maven module) which I would like to extend instead of Specification to reuse their logic.
Since java (groovy) does not allow multiple inheritance I'm struggling how to achieve this goal.
As far as I've seen all spock tests extend Specification class and there is no other way how to create spock test.
To sum up: it would be nice to have something like @Specification annotation which would serve as an alternative method for defining the spock test (instead of extending the Specification class).
Thanks for the answer(s)!