GGTS3.0.0M3 Integration Spock tests not running
I have a number of Spock Unit Tests that run fine in the IDE when you do a Run As->JUnit Test.
But my Spock Integration Test doesn't run at all. When I run it, I get the following error:
java.lang.NullPointerException: Cannot get property 'mainContext' on null object
at grails.plugin.spock.IntegrationSpec.$spock_initial izeSharedFields(IntegrationSpec.groovy)
This is what happens from the command line when you run JUnit tests and Spock tests together, so I suspect that it's being treated as a pure JUnit test instead of as a Spock test?
The class extends grails.plugin.spock.IntegrationSpec instead of spock.lang.Specification. When I change the extends to Specification, then it gets much further along but that doesn't work since the vanilla Specification doesn't provide integration test support.