add9
add9

Reputation: 1503

Any coverage tool allows to ignore getters , setter, equals and hashcode?

We are currently using Cobertura but i can't figure out a way to exclude those methods. I tried Emma and clover as well which i couldn't find any way to do as well.

Please , spare your "You should test those" comments , this is some kind of specific thing we want to see.

Upvotes: 2

Views: 1176

Answers (1)

robjohncox
robjohncox

Reputation: 3665

It looks like the latest version of Cobertura has a new annotation @IgnoreMethod that will accomplish exactly this for you (search for IgnoreMethodAnnotation in the page linked below).

http://cobertura.sourceforge.net/

Upvotes: 1

Related Questions