Testframework for plugins?
Hey Jetbrains,
is there some sort of test framework that allows plugin developers to automatically test their plugins? Something that would launch IDEA, deploy the plugin and run some GUI oriented test cases. I assume you have to have something like that for the development of Idea itself - maybe you could make it public for plugin development with continuous integration.
Thanks,
-hendrik
Please sign in to leave a comment.
Hello Hendrik,
HS> is there some sort of test framework that allows plugin developers
HS> to automatically test their plugins? Something that would launch
HS> IDEA, deploy the plugin and run some GUI oriented test cases. I
HS> assume you have to have something like that for the development of
HS> Idea itself - maybe you could make it public for plugin development
HS> with continuous integration.
There is one, but it isn't really documented and doesn't work quite well
for custom plugins. :) Refer to the com.intellij.testFramework package in
the OpenAPI documentation from the Plugin Development Package. Also, it's
not designed for testing the GUI, but rather for testing non-UI functionality
like the parser and PSI, different code insight features and so on.
To get your tests to work, you'll most likely need to add all standard IDEA
plugins to the classpath of your IDEA SDK.
We plan to make the framework more usable and provide documentation and samples
for it in the future.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"