[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?

Björn.

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

2 comments
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'
https://youtrack.jetbrains.com/_persistent/image.png?file=74-267049&v=0&c=true&updated=1446732265779

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
0
Comment actions Permalink

Hello Vladislav,

This solves my issue, thank you very much!

Björn.

0

Please sign in to leave a comment.