You can right click on a class/method and choose “Run As” --> “Gradle Test”. AFAIK this runs the test via the Gradle Daemon using the exact same classpath as building from command line. An extra benefit of running your tests this way is that any doFirst
and doLast
blocks will also be executed. I found that the output of running this way was less pretty/clickable than the normal "Run As --> “JUnit Test” so I find myself using the Gradle Test runner for test cases known to be broken in Eclipse and the JUnit runner for everything else.
More info here