I have a plugin I want to upgrade that depends on Ultimate features. Previously, my tests were working on 2025.1, now they fail on 2025.3:
I could resolve initial errors with the IDE home path by replacing an explicit test dependency with the testFramework helper:
Now I’m running into different issues that seem to be related to the unified distribution change:
internal class NoJQuerySelectorInspectionTest : BasePlatformTestCase() {
@Test
fun testJqAttributeHasWarning() {
myFixture.enableInspections(NoJQuerySelectorInspection::class.java)
myFixture.configureByText("test.jsp", """
<script><warning descr="Do not use jQuery: ${'$'}('selector')">${'$'}('selector')</warning></script>
""".trimIndent())
myFixture.testHighlighting()
}
}
Unregistered inspections requested: [com.example.intellij.codequality.inspection.javascript.NoJQuerySelectorInspection]
The inspections aren’t loaded automatically, likely because the plugin has a dependency on JSP (<depends>com.intellij.jsp</depends>). If I remove that dependency, the JavaScript inspection tests pass, the JSP inspection tests keep failing. If I add the dependency again, all of the inspection tests fail with an “Unregistered inspection” exception.
What’s the correct way to test Ultimate-dependent plugins in unit tests in 2025.3?
