From: Steven C. <ste...@re...> - 2011-09-23 16:50:59
|
I'm wondering if this might be compiler related issue. It looks like line count has increased, as well as the branch coverage. Also you're getting coverage on method headers. If you're up for a challenge, you can try out this version of cobertura which might fix it: https://cobertura.svn.sourceforge.net/svnroot/cobertura/branches/ptab_v2_0/cobertura On 9/22/2011 1:36 PM, Chuck Rossi (chuckr) wrote: > > I have a simple class that should be 100% tested by my unit test > cases. And if I don't have and lines of code split across line, > Cobertura reports 100% coverage as I would expect: > > However, if I split line 26 and rerun the same test, I get the following: > > It appears that cobertura is getting a bit confused about the lines > numbers. > > Is this a known problem? Is there a work-around other than changing > all our code to avoid new-lines within a line of Java code? I'm > running Java 1.6.0_19 with Tomcat 6.0.26. > > Chuck > > http://www.cisco.com/swa/i/logo.gif > > *Chuck Rossi* > *Technical Leader.engineering* > *Customer Service* > ch...@ci... <mailto:ch...@ci...> > Phone: *+1 978 936 1735* > > > > *Cisco Systems, Inc.* > 1414 Massachusetts Avenue > Boxborough, MA 01719 > United States > Cisco.com <http://www.cisco.com> > > > > Think before you print.Think before you print. > > > This email may contain confidential and privileged material for the > sole use of the intended recipient. Any review, use, distribution or > disclosure by others is strictly prohibited. If you are not the > intended recipient (or authorized to receive for the recipient), > please contact the sender by reply email and delete all copies of this > message. > > For corporate legal information go to: > http://www.cisco.com/web/about/doing_business/legal/cri/index.html > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2dcopy2 > > > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |