If you use agent, then you don't need to instrument classes in step 1. On Monday, October 29, 2018 at 10:06:17 AM UTC+1, [email protected] wrote: > > 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/950ea11a-92ad-4c34-a639-de4ecdb53313%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
