com.intellij.testFramework.UsefulTestCase not found in 2025.1

Just upgrading my plugin to support 2025.1 gives me

Cannot access ‘com.intellij.testFramework.UsefulTestCase’ which is a supertype of ‘io.kotest.plugin.intellij.styles.AnnotationSpecRunMarkerTest’. Check your module classpath for missing or conflicting dependencies.

In all my tests. Do I need another dependency for 2025.1 ? Codebase is here: GitHub - kotest/kotest-intellij-plugin: Kotest plugin for Intellij and Android Studio

The only difference is the version of the SDK and bumping JDK to 21. It works fine for 2024.x.y

Hi, I had the same problem in my plugin, I fixed it by adding a second testFramework() statement for TestFrameworkType.Platform:

testFramework(TestFrameworkType.Platform)
testFramework(TestFrameworkType.Plugin.Java)

That fixed it. Thank you!