Test output and gradle test status is getting messed up on IDEA console

Hi,
I am relatively new to gradle. I am facing below issue. Any help will be appreciated.
All i want is;
to log on console the method name before starting any test method, followed by the method output, followed by the gradle test status for that method. and then the next method and so on.
I am using this in my build.gradle file
beforeTest {
descriptor -> logger.lifecycle("Running test: " + descriptor)
}

But this is printing the output at the very end. All of the method outputs are getting printed before the running test statement like below
output1
output2
output3
Running test: Test method method1
Gradle suite > Gradle test > package.Class > method 1 PASSED
Running test: Test method method2
Gradle suite > Gradle test > package.Class > method 2 PASSED
Running test: Test method method3
Gradle suite > Gradle test > package.Class > method 3 PASSED;
I want to get like below;
Running test: Test method method1
output1
Gradle suite > Gradle test > package.Class > method 1 PASSED
Running test: Test method method2
output2
Gradle suite > Gradle test > package.Class > method 2 PASSED
Running test: Test method method3
output3
Gradle suite > Gradle test > package.Class > method 3 PASSED
When i am running it on terminal using ./gradlew test then its fine but when i am running it using Intellij IDEA plugin verification > test, then only its getting messed up.
Is it possible?