Run Gradle test and not Junit test in IntelliJ IDEA 15 when choosing configuration type to run with
I found the solution. They have changed the way you select this option in the new version of intellij 15.02.
You have to select Gradle Test Runner.
Please take a look:
In modern versions of IntelliJ (I have Ultimate 2019.2.3) here's what you need to update:
Update from "Gradle" to "IntelliJ IDEA"