[solved] Intellij 15.0.2 changed gradle test debugging :(

Debugging a single test case from a grade test (run gradle test, open test window, choose test case, debug from context menu) now uses the intellij Junit debug facility (including "make")  instead of "remote" debugging the gradle test case, which was working in 15.0.1. This bugs me a lot ,we use a custom classpath in the gradle test case).
Why this was changed !? Can I still debug a single gradle (!) test case method anyhow?


Solved: This is now a setting in the Settings/Build,Execution,Deployment/Build Tools/Gradle/Runner settings.

Comment actions Permalink

Hi Björn,

You can use gradle for running/debugging your tests. In order to use gradle test runner you should open  File | Settings | Build, Execution, Deployment | Build Tools | Gradle | Runner configuration page and choose  'Gradle Test Runner'

There were some complaints about gradle test runner, since it added an extra step to run a test, see details at https://youtrack.jetbrains.com/issue/IDEA-127398
So, now you have 3 options to choose how would you like to run tests:

  • Platform Test Runner (default)
  • Gradle Test Runner
  • Let me choose per test
Comment actions Permalink

Hello Vladislav,

This solves my issue, thank you very much!



Please sign in to leave a comment.