Running knime test with jacoco java agent


I tried the following command:

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

But the test does not run.


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 ...... 



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.