Skip to content

v2.1.2.EAP

Pre-release
Pre-release
Compare
Choose a tag to compare
@ptrthomas ptrthomas released this 02 Dec 11:26
· 4 commits to main since this release

Installation

  • Download plugin (3MB ZIP file) from here below
  • In IntelliJ, go to Settings -> Plugins. Click on the "gear" icon and Install plugin from disk.

Fixes issues with debugging Gradle projects when debug session was initiated from Java.

Running Tests via IntelliJ (not Gradle)

For Karate debug support to work, the native IntelliJ Java run configuration should be used. But in Gradle projects, running a JUnit test uses a different kind of run configuration by default. You can change this behavior in Settings > Build, Execution, Deployment > Build Tools > Gradle > Build and run

Set the Run tests using option to Choose per test as shown below.

Now, when you right-click on the JUnit class (or method) and debug (or run), you can choose to use the "native" IntelliJ Java runner as shown below:

Now, a debug session started from the Java or JUnit entry point will also stop at breakpoints in Karate feature files. If you need to set custom VM options, those are easy to do in the Java or JUnit run configuration.