Running knime test with jacoco java agent

Hi,

I tried the following command:

knime -clean -application org.knime.testing.NGUnittestRunner -javaagent:D:\org.jacoco.agent-0.7.2.201409121644.jar=destfile=D:\jacoco.exec,output=file -xmlResultDir D:\testrs

But the test does not run.

Cheers

Just realized that i cannot use the -javaagent option with the knime.exe command.

In that case, how do i run the knime testing runner application using the "java" command?

java -jar ...... 

Cheers,

Kenny

You can use it with knime.exe but you have to prepend -vmargs. Everything after -vmargs is passed to the Java process and not the application. Beware though that if you pass -vmargs on the command line all vm arguments from the knime.ini will be ignored.