[BUILD-76] Clover: ignore coverage of getters and setters Created: 03/Nov/11  Updated: 13/Apr/17  Resolved: 23/Oct/14

Status: Closed
Project: Build
Component/s: Poms
Affects Version/s: None
Fix Version/s: POMs 30

Type: Task Priority: Neutral
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to BUILD-174 Update Clover plugins to 4.0.2 Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

Adding <contextFilters>property</contextFilters> in the clover-maven-plugin configuration effectively ignores getters and setters, but unfortunately only in :check and reports. To avoid further discrepancies, we won't enable this until either or both of our issues are addressed by Atlassian.

See BUILD-75 as well as CLMVN-144 and CLOV-1036



 Comments   
Comment by Magnolia International [ 23/Jan/13 ]

Atlassian says this might be fixed in Clover 3.1.6:
https://studio.plugins.atlassian.com/browse/CLMVN-144
https://jira.atlassian.com/browse/CLOV-1224
https://jira.atlassian.com/browse/CLOV-1064

We're running on 3.1.6 since POMs v24 (BUILD-109) and 3.17 since v25 (BUILD-118), so if we can test this, all it'd take is to remove the commented section in the parent pom IIRC.

Comment by Magnolia International [ 23/Oct/14 ]

Got consistent output between :log :check and the report.
Expect a slight change in coverage %age, since coverage of getters and setters doesn't count anymore, the %age might take a little dip.
In case of issues, it is possible to remove the filter by resetting the cloverContextFilters property, e.g. mvn -DcloverContextFilters= clover2:instrument clover2:log clover2:check

Generated at Sun Feb 11 23:38:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.