If you never saw value different than zero, then before playing with 
inclusions and exclusions try to get non-zero value by removal of argument 
"includes=MyTestClass_01".

On Saturday, July 11, 2015 at 1:58:18 AM UTC+2, [email protected] wrote:
>
> 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/1c6a72f3-3320-4f07-9235-2bb2fd8feb00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to