JetBrains / intellij-platform-plugin-template

Template repository for creating plugins for IntelliJ Platform
Apache License 2.0
3.14k stars 638 forks source link

tests don't work when I upgrade to a later IntelliJ platform #258

Closed christophsturm closed 2 years ago

christophsturm commented 2 years ago

Describe the bug: The example test "MyPluginTest" works correctly with this template. but if I increase platformVersion to a later idea version it no longer works. Steps to reproduce: change this in gradle.properties:

pluginSinceBuild = 211
pluginUntilBuild = 221.*

platformType = IC
platformVersion = 2022.1

run MyPluginTest gradle says:

> No tests found for given includes: [com.github.christophsturm.testplugin.MyPluginTest](--tests filter)

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Expected behavior:

the test should run

Additional context:

YannCebron commented 2 years ago

Please see https://plugins.jetbrains.com/docs/intellij/api-changes-list-2021.html#20213

Also we recommend building the plugin against the lowest supported platform version (211), not the latest one (221).