GNU Emacs 24.3.1
Gradle 1.12
spock-core.0.7
Hello,
I am doing unit testing with spock framework
using the gradle build
Try gradle --stacktrace test
. I believe that will show the stacktraces that produced the test failures/errors.
You could also perhaps add the --debug
option also for additional information.
When I run my tests gradle test I just see a message like this: [...]
By default, you'll also see (further up in the output):
To see more information, configure Test#testLogging
. For example:
tasks.withType(Test) {
testLogging {
exceptionFormat "full"
}
}
For further details, check Test
in the Gradle Build Language Reference.
Then I have to go and check the xml file to see what exception has been thrown
Typically you would check the HTML report, not the XML file. On Mac you can open the report simply by holding down CMD and double-clicking the file URL after See the report at:
. Some *nix terminals offer a similar feature.