Hi,

obviously your command line does not execute anything. There is no main class 
to be executed.

As a general rule we recommend to first make your test setup run, and then add 
code coverage to it. It it does not run without code coverage it will neither 
run with JaCoCo ;)

Regards,
-marc


> On 4. Jul 2019, at 04:57, Weisong Sun <[email protected]> wrote:
> 
> I execute the following command on my mac terminal, then I can get the file 
> "jacoco.exec". I use Ant to extract report, but the coverages are always 0.
> java 
> -javaagent:/Users/sunweisong/Desktop/jacocoagent.jar=includes=net.mooctest.*,output=file,destfile=jacoco.exec
> Thank you for your attenting my question.
> 
> <structure.jpg>
> 
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/b102c9d5-4fa6-4bb9-8c51-b56fa783ef0a%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/b102c9d5-4fa6-4bb9-8c51-b56fa783ef0a%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <structure.jpg>

-- 
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/CAE15E6D-0BF8-42E1-9F78-40E241FA3426%40mountainminds.com.

Reply via email to