Closed johnmc5810 closed 4 years ago
Which versions of Groovy, Spock and Arquillian-Spock did you use?
Hi, thanks for getting back to me.
groovy: 2.4.8 spock: 0.7-groovy-2.0 arquillian-spock: 1.0.0
As you have not provided a complete MCVE, i.e. a Maven POM and a full test case reproducing your problem, I can just speculate about the root cause of your problem. But assuming your build setup and Spock specificattion are both okay, I can say this:
You are using an old Spock version targeted at Groovy 2.0, maybe this is part of the problem. As you can see on Maven Central, Groovy 2.4 versions are available as of Spock 1.0 (current is 1.2).
Not being a maintainer, only a user, I also know that the Arquillian runner does not work perfectly with Spock 1.x, see #18, but also #21 and #26. Still, it might be worth a try to build a snapshot version of the Spock 1.0 branch and use a more recent Spock version. This does not work perfectly, but mostly okay.
I just saw this again today and was wondering if you could solve your problem back then. Just not providing feedback is not a good way to close open tickets and definitely not a nice way to treat persons who try to help you.
Please don't just close the ticket, please return some information to the community you asked for help. What did you do to solve the problem?
I changed company so issue was never solved. To recreate,you just use same dependencies and see if hooks are being called. I don't have access to the original project. It's Sunday man,chill out 😁
Issue Overview
The fixture methods are not being called when ran with @RunWith(ArquillianSputnik)
Expected Behaviour
The fixture methods are called as in other spock tests
Current Behaviour
Fixture methods not being called
Steps To Reproduce
Additional Information
Using JDK 8