On Monday, 29 October 2018 14:26:32 UTC+5:30, [email protected]  wrote:
> hi, i have created a customerorder application(not a web application) and 
> packaged it in main.jar.
> 
> I want to use the jacoco CLI introduced in 0.8 version..
> 
> Step 1. I created the instrumented classes by executing
> java -jar jacococli.jar instrument <dir where all my application are> --dest 
> C:\jacoco\target
> here, C:\jacoco\target is the directory where the instrumented classes will 
> placed.
> 
> Step2: I ran my junit test class as standalone application::
> java -cp ${CLASSPATH}  org.junit.runner.JUnitCore 
> com.samples.customerinfo.CustomerOrderInfoTest
> 
> Junit sucessfull done!!
> 
> Step3:: Missing link.. How my executed junit will create the jacoco.exec 
> files, i want to use the CLI options of jacoco library..
> 
> do i need to pass the jacocoagent.jar in the JVM , i am using powershell only.
> 
> Pl. suggest..


Hi All,
I found the reply..
Step 2 needs to be changed and javaagent options needs to added and pointing to 
jacocoagent.jar

java -javaagent:jacocoagent.jar=destfile=jacoco.exec -cp ${CLASSPATH}  
org.junit.runner.JUnitCore com.samples.customerinfo.CustomerOrderInfoTest

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/100e3e7c-6be3-495e-ab63-ee705e7a9d50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to