Closed provegard closed 6 years ago
I think this is a bug - the code should probably inspect the current logging level to determine the appropriate events.
Please can you try setting the overall events?
testLogging {
events = ['FAILED']
}```
That worked! Odd that Gradle didn't complain syntax-wise about my first variant.
Thanks!
No worries, I think the first variant is valid. I expect you can configure it such that running with --debug
or --info
behave differently.
Unfortunately I've not actually tested the detailed behaviour of Gradle's native test task, I didn't have time.
I'm using version 0.22.
I'd like to show only failed tests in the output from
gradle test
.Here are things I have tried inside the
test
task:This resulted in no tests being shown at all. The test run failed due to failed tests though.
This showed all tests, also the successful ones.
This showed all tests, also the successful ones.
No tests were shown at all.