"build" shows not enough test failure info, "check" shows info twice?!

Setup: Gradle 4.3. Basically, I just executed “gradle init --type=java-application”, added Spock framework as a dependency, converted the JUnit test to Spock and made it fail.

Problem: When I run gradlew clean build, then I only get output like this:

:test
AppSpec > app has no greeting FAILED
    org.spockframework.runtime.SpockComparisonFailure at AppSpec.groovy:9

However, when I run gradlew clean check, then I get

:test
AppSpec > app has no greeting FAILED
    org.spockframework.runtime.SpockComparisonFailure at AppSpec.groovy:9

Condition not satisfied:

classUnderTest.getGreeting() == null
|              |             |
App@7d23be9b   Hello world.  false

Condition not satisfied:

classUnderTest.getGreeting() == null
|              |             |
App@7d23be9b   Hello world.  false

	at AppSpec.app has no greeting(AppSpec.groovy:9)

So I get either too little information (build) or the same information twice (check).

I played around with “testLogging { … }”, but haven’t manage to get consistent output with relevant info shown only once.

What else can I try?