MISSEDCOUNT

15 views
Skip to first unread message

Ralph Bergmann

unread,
Feb 25, 2015, 7:03:42 AM2/25/15
to jac...@googlegroups.com
Hi,


I want to use JaCoCo for this Android project:
https://android.googlesource.com/platform/frameworks/volley/

But it looks that this limit rule has no effect

<limit>
<counter>CLASS</counter>
<value>MISSEDCOUNT</value>
<minimum>0</minimum>
</limit>

In the project are lots of files without a test case but the build
doesn't fail.

What's wrong?



Ralph
pom.xml

Marc Hoffmann

unread,
Feb 25, 2015, 7:49:39 AM2/25/15
to jac...@googlegroups.com
Hi,

MISSEDCOUNT is a non-negative number, which is always >= 0. Maybe you
want to limit the maximum?

<limit>
<counter>CLASS</counter>
<value>MISSEDCOUNT</value>
<maximum>0</maximum>
</limit>

Regards,
-marc

Ralph Bergmann

unread,
Feb 25, 2015, 8:33:10 AM2/25/15
to jac...@googlegroups.com
Hi Marc,


I want that the build breaks if there is one or more classes without a test.

What is the right parameter for this? I don't found any description for
this parameter :-(


Ralph


Am 25.02.15 um 13:49 schrieb Marc Hoffmann:

Marc Hoffmann

unread,
Feb 25, 2015, 8:37:31 AM2/25/15
to jac...@googlegroups.com
This is exactly what my first answer will do:

<limit>
<counter>CLASS</counter>
<value>MISSEDCOUNT</value>
<maximum>0</maximum>
</limit>

regards,
-marc

Ralph Bergmann

unread,
Feb 25, 2015, 8:40:23 AM2/25/15
to jac...@googlegroups.com
Am 25.02.15 um 14:37 schrieb Marc Hoffmann:
> <maximum>0</maximum>

aaah you changed minimum to maximum... my mistake :-(


Thanks a lot, it works :-)


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