Hi,
I trying to run a jacoco command line agent with a jenkin job.So to achieved
that i just tried to create a simple test class and tried to get the coverage
for that with a command line using below command.so that i could later use this
for all the classes with a jenkin post bild shell script. Any way below command
returns me a 0 coverage. please let me know what i am doing wrong here.
java -cp
/CovTest/COverageTest/out/production/COverageTest:.:/CovTest/InstalledSoftware/idea-IU-141.1010.3/lib/*
-javaagent:/home/madhawa/Desktop/jacoco-jar/jacocoagent.jar=destfile=/CovTest/COverageTest/MYTARGET/jacoco.exec,append=true,dumponexit=true,includes=MyTestClass_01
org.junit.runner.JUnitCore MyTestCase_01
Note: junit test case class : MyTestCase_01
java class : MyTestClass_01
refer original post for this:-
http://stackoverflow.com/questions/31350468/0-coverage-on-test-case-when-run-jacoco-agent-on-my-simple-test-class
--
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/d5776f7d-7c66-4b92-8722-d294127378f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.