From: John W. L. <Joh...@sa...> - 2011-01-17 22:04:01
|
For the log.debug() filtering use <ignore regex="org.apache.log4j.*" /> as explained here: http://cobertura.sourceforge.net/anttaskreference.html The other functionality will be coming with the next release: * New --ignoreTrivial switch that tells Cobertura to ignore the following in the coverage report: Getter methods that simply read a class field; Setter methods that set a class field; Constructors that only set class fields and call a super class constructor. (Patch 3010530 from 1576631) (Scott Frederick/Tad Smith) * New --ignoreMethodAnnotation switch used to specify an annotation that, when present on a method, will cause Cobertura to ignore the method in the coverage report. (Patch 3010530) (Tad Smith) The changes are available on the trunk. John -----Original Message----- From: Dmitri Farafonov [mailto:far...@gm...] Sent: Monday, January 17, 2011 4:52 PM To: cob...@li... Subject: [Cobertura-devel] Coverage report "filter"? Hi, I could not find any documentation on that on the site, so: Does anyone know a way to filter out reporting of certain lines of code from coverage report? For example I want to be able to exclude LOG.debug() calls and getters and setters method from being reporting at all, similar to the way Clover does: "Clover Contexts"http://confluence.atlassian.com/display/CLOVER/Using+Coverage+Contexts Is there a way to do similar reported content filtering? Thanks, Dmitri. ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |