Limit counter for public methods

7 views
Skip to first unread message

ruppel...@gmail.com

unread,
Apr 9, 2020, 8:23:23 AM4/9/20
to JaCoCo and EclEmma Users
I am searching for a way to check the coverage of public methods within the check maven goal. 

Something in the sense of (with pseudo ICoverageNode.CounterEntity enum PUBLIC-METHOD)
<rules>
  <rule>
    <element>BUNDLE</element>
    <limits>
      <limit>
        <counter>PUBLIC-METHOD</counter>
        <value>MISSEDCOUNT</value>
<maximum>0</maximum> </limit> </limits> </rule> </rules>


Is this possible?

Marc Hoffmann

unread,
Apr 9, 2020, 8:42:05 AM4/9/20
to JaCoCo and EclEmma Users
This is not possible.

Regards,
-marc

--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/24dd57e0-fcbf-4c84-9f0b-043170ff7e8c%40googlegroups.com.

drek...@gmail.com

unread,
Apr 9, 2020, 9:47:39 AM4/9/20
to JaCoCo and EclEmma Users
I can't answer (never setup such rules before) but find this interesting. What do you define public as?
  • Java Module exports : module a.b.c {exports a.b.c.api;}
  • All classes in a given package
  • Any public class
  • Literally any public method (what about public method on a private class? Java let's you define silly scopes like this)


Reply all
Reply to author
Forward
0 new messages