I'm using TestNG with gradle:
compile group: 'org.testng', name: 'testng', version: '6.11'
I'm using IntelliJ to run my tests. However, when one of my methods throws an exception, it doesn't show me what exception was thrown:

The startDb method threw an exception, and was correctly marked as failed, but I can't find any way for me to actually see the exception that was thrown (without wrapping the method in a try-catch).
Method:

The specific method doesn't show anything either:

Is this supposed to be occurring? How am I supposed to debug why tests are failing if I don't get any information from TestNG?
Apparently, TestNG doesn't show output unless the following is set in gradle:
test {
testLogging.showStandardStreams = true
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With