import grails.test.mixin.integration.Integration
import spock.lang.Specification
@Integration
class MySpec extends Specification {
def setup() {
}
def cleanup() {
}
void "test something"() {
expect:"tests a"
true
}
}
MySpec > test something FAILED
java.lang.IllegalStateException
Caused by: org.springframework.beans.factory.BeanCreationException
Caused by: org.springframework.beans.factory.BeanCreationException
Caused by: org.springframework.beans.factory.BeanCreationException
Caused by: java.lang.NullPointerException
1 test completed, 1 failed :integrationTest FAILED :mergeTestReports
I run "test-app -integration MySpec" command
Is that an error in grails or I do smth wrong?
UPDATE!
I found a solution - just add testCompile "org.grails.plugins:hibernate" to build.gradle
testCompile 'mysql:mysql-connector-java:8.0.26'tobuild.gradle- August