Run JUnit test in IntelliJ IDEA 14 without choosing configuration type
You can get rid of this annoying by adding
idea.gradle.prefer.idea_test_runner=true
to idea.properties file located in the bin directory of the IntelliJ IDEA installation. Then restart IDEA and enjoy.
Go to setting > Build, Execution, Deployment > Build Tools > Gradle > Runner and choose "Platform Test Runner" in "Run test using"