2025.2: How can I run tests in plugin which depends on Ultimate?

  • 2025.2 RC
  • Plugin uses the v2 model
  • Plugin declares a dependency on Ultimate: <plugin id="com.intellij.modules.ultimate"/>
  • Gradle setup: org.jetbrains.intellij.platform version 2.7.0
    IDE dependency: intellijIdeaUltimate(252.23892.360)

Now, when tests are executed they fail because the Ultimate part is not activated by default.

Question: How can I run tests against 2025.2 which depend on com.intellij.modules.ultimate?

When I execute the IDE via runIde, then I have to activate the license in the Register dialog first to enable the plugin.

The plugin uses JetBrains LSP. I couldn’t find any module, which contains the JetBrains LSP implementation…

The relevant part of the idea.log file of the test execution:

2025-07-30 21:13:26,705 [    240]   INFO - #c.i.i.p.PluginManager - Problems found loading plugins:
  Plugin 'Qwiet AI' (ai.qwiet.jetbrains) has dependency on 'com.intellij.modules.ultimate' which is not installed

Found a workaround:

Add testBundledModule("com.intellij.modules.ultimate") to the intellijPlatform dependencies. This doesn’t work if CLion is used as configured IDE. In my tests it’s only available if you configured IntelliJ Ultimate 2025.2.

dependencies {
    intellijPlatform {
            // only working with 2025.2+
            testBundledModule("com.intellij.modules.ultimate")
    }
}
2 Likes

Since 2025.2.1 update there will be a dedicated plugin alias so you can properly depend on LSP - com.intellij.modules.lsp. Beware that dependency on com.intellij.modules.ultimate makes a module unavailable to free users.

1 Like