I would like to execute a JUnit test from my plugin.
I tried to add the JUnit plugin from IntelliJ to my plugin project to access the functionality of it.
But I always fail on the classloader.
It prints this message and terminates:
Class not found: "TestNumberB.java PluginClassLoader[com.yourcompany.unique.plugin.id, 1.0]"Exception in XML-RPC listener loop (java.net.SocketException: socket closed).
JUnit4IdeaTestRunner jUnit4IdeaTestRunner = new JUnit4IdeaTestRunner();
jUnit4IdeaTestRunner.startRunnerWithArgs(testClassNames, null, true);
I tried to find an answer in the community edition source code as well but I couldn't find any.
Thanks in advance