jacoco test reports are cleared

30 views
Skip to first unread message

yezi...@gmail.com

unread,
Mar 15, 2017, 5:46:56 AM3/15/17
to JaCoCo and EclEmma Users
Hi!

I am using the Jacoco Agent with tomcat to get my test reports and I have got a problem.
when I change some java src and restart tomcat server, next time I get my Jacoco test reports ,the coverage rate of class which I have changed before are cleared.

Is there any way can help to solve my problem?

Thanks.

Marc R. Hoffmann

unread,
Mar 15, 2017, 1:37:25 PM3/15/17
to jac...@googlegroups.com
Hi,

this is exactly how JaCoCo works: coverage data of different versions of
a class cannot be merged.

Regards,
-marc

yezi...@gmail.com

unread,
Mar 15, 2017, 10:59:41 PM3/15/17
to JaCoCo and EclEmma Users
Marc R. Hoffmann於 2017年3月16日星期四 UTC+8上午1時37分25秒寫道:
> Hi,
>
> this is exactly how JaCoCo works: coverage data of different versions of
> a class cannot be merged.
>
> Regards,
> -marc
>

hi marc

Thanks for your reply.

Our project need a coverage rate report during Unit Test stage.This stage is unstable and has a lot of changes in src.Can you improve Jacoco to solve our problems ?

Many thanks.

Marc Hoffmann

unread,
Mar 16, 2017, 3:24:59 AM3/16/17
to jac...@googlegroups.com
Hi,

especially when you have a lot of changes in your code base you should
definitely run all your unit tests again. Best practice would be to
automate unit test execution, it's always "unit test stage" ;-)

We had this discussion before here: It definitely doesn't make sense and
there no reasonable way to merge the execution paths from one version of
a class to a different version.

Regards,
-marc
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages