I am getting exception while running spock test with gradle in eclipse. In Gradle task tab "Run build" having a red icon of failure, when I right click on it to see the error it gives InternalTestExecutrionException.
org.gradle.tooling.internal.protocol.test.InternalTestExecutionException: Error while running test(s)
My Code is very simple and below is the code is there something I am missing on gradle project build.
import spock.lang.*
class HelloSpockSpec extends spock.lang.Specification {
def "length of Spock's and his friends' names"() {
expect:
name.size() == length
where:
name | length
"Spock" | 3
"Kirk" | 4
"Scotty" | 6
}
}