Testing custom CLion Plugin

Completed

Hi,
I am currently developing a plugin for CLion, and wanted to know if there is any way of using Intellijs testing framework for plugins. I am talking about classes like `LightPlatformCodeInsightFixtureTestCase` and `LightCodeInsightFixtureTestCase` which I don't seem to find, if I use CLion as Intellij Platform Plugin SDK. Using CLion as plugin SDK is crucial, as I'm working with classes like `CMakeProfile` and `CidrLauncher`.

Thanks in advance!

3 comments
Comment actions Permalink

Solved it. Use gradle to build your plugin and add clion as a test dependency.

0
Comment actions Permalink

Hi Michael-luis Calvert, I am trying to develop a CLion plugin, as you have prior knowledge on the CLion plugin development Could you please help me with these questions.

1) How did you test the code while developing? Have you used something like this in the build.gradle file intellij {version 'CL-2019.1'}. for me its now working.

2) is plugins, developed by following https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html , portable within intellij idea and clion? Because for the testing purpose i am using intellij idea community (clion doesnt work for me). will my plugin work in clion at the end of development?

Please help me with these questions.

Thank you.

0
Comment actions Permalink

Please note that we have a web-help article about developing plugins for CLion: https://www.jetbrains.com/help/clion/2019.1/develop-plugins-for-clion.html.

0

Please sign in to leave a comment.