Testing through Gradle does not run IntelliJ-platform-specific tests

I have a set of JUnit 5 tests for my plugin that I can run just fine from within IDEA or through Gradle. Recently I needed to test a functionality that requires a running environment and an open project, so I wrote a test case class extending `LightPlatformCodeInsightFixtureTestCase` for that.

The problem is that if I run tests from within the IDE, both my JUnit tests and the platform-specific tests are run, but if I run the Gradle task `test`, only my JUnit tests are run.

Is there any extra configuration I need to do in Gradle to make it aware of the platform-specific tests?

0
1 comment

It sounds unrelated to IntelliJ platform and more like a question to Gradle itself. If you can recreate the same behavior on a sample project with JUnit3 and JUnit5 tests in it and without gradle-intellij-plugin, it makes sense to file an issue at gradle's issue tracker: https://github.com/gradle/gradle

0

Please sign in to leave a comment.