Connect to junit process

Hi,

I have a process that executes junit tests and prints the output to an OutputStream (System.out, ADB logcat). I would like to parse the output and pipe it into the existing idea junit process (with the fancy UI). Do I have to create a custom ConfigurationProducer and RunningState. If so how can I attach to the junit process. Thanks.

-Tim

3 comments
Comment actions Permalink

The best way to use that is to print the output as TeamCity service messages and to reuse the existing SMTestRunner infrastructure in IntelliJ IDEA. You'll need to create your own run configuration, but you'll be able to reuse the IDEA UI.

As an example of a run configuration that uses that UI, you can look at the JsTestDriver plugin code.

0
Comment actions Permalink

Thanks!

Which classes do I have to use after parsing the junit output? Is there any Output/PrintStream to use for the the parsed teamcity messages?

Is there any chance to link the JSTestDriver plugin from within the Community Edition?

0
Comment actions Permalink

You don't need to deal with any streams manually. The framework will take care of it.

To link the JSTestDriver plugin to Community Edition, clone the intellij-plugins repository under the directory where you checked out IntelliJ Community Edition, and then right-click the .iml file for JsTestDriver and select the option to add it to the project.

0

Please sign in to leave a comment.