Using the test runner inside IntelliJ IDEA (14.1) to run a single test method on a Spock Specification, gradle gets called liked this:
gradle cleanTest test --tests "com.example.ThingTest.Creating a thing works"
Inside IDEA I get the following output:
Testing started at 12:59 PM ...
12:59:42 PM: Executing external tasks 'cleanTest test --tests "com.example.ThingTest.Creating a thing works"'...
:cleanTest
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava UP-TO-DATE
:compileTestGroovy
:processTestResources UP-TO-DATE
:testClasses
:test
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
com.example.ThingTest > Creating a thing works FAILED
groovy.lang.GroovyRuntimeException at ThingTest.groovy:39
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
Empty test suite.
1 test completed, 1 failed
:test FAILED
FAILURE: Build failed with an exception.
BUILD FAILED
Total time: 5.984 secs
Running that same thing on the command line generates a far more succinct output:
:cleanTest
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava UP-TO-DATE
:compileTestGroovy UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test
com.example.ThingTest > Creating a thing works FAILED
groovy.lang.GroovyRuntimeException at ThingTest.groovy:39
1 test completed, 1 failed
:test FAILED
FAILURE: Build failed with an exception.
BUILD FAILED
Any ideas why the “Empty test suite.” lines are being logged?
Apologies if this belongs someplace else, happy to move it if necessary and able.