简体   繁体   中英

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.

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM