“Could not find ApplicationContext, configure Grails correctly first”
问题 We have a plugin project with some domain classes and services etc. We have an application project which uses the plugin project. This is a common pattern. Integration test (which hit the DB) cant run in the plugin project, as it has no application context, so we run the integration tests in the main application project. We have a very simple integration test: /*@TestFor(Site)*/ class SiteIntegrationSpec extends IntegrationSpec { static transactional=false; def setup() { } def cleanup() { }