From: ashwini s. <ash...@gm...> - 2011-01-19 05:11:01
|
hello, even i am seeing the same issue. some condition in the coverage report says 1/2 or 50% covered. looking forward for suggestions Thanks, Ashwini On Wed, Jan 19, 2011 at 2:35 AM, < cob...@li...> wrote: > Send Cobertura-devel mailing list submissions to > cob...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > or, via email, send a message with subject or body 'help' to > cob...@li... > > You can reach the person managing the list at > cob...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Cobertura-devel digest..." > > > Today's Topics: > > 1. Cobertura Question (Parra Virgen Mario-B15605) > 2. Re: Cobertura Question (John W. Lewis) > 3. Re: Cobertura Question (David Read) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 18 Jan 2011 20:31:17 +0000 > From: Parra Virgen Mario-B15605 <B1...@fr...> > Subject: [Cobertura-devel] Cobertura Question > To: "cob...@li..." > <cob...@li...> > Message-ID: > < > 007...@03...> > > Content-Type: text/plain; charset="us-ascii" > > Hello, > > I'm currently using Cobertura for test coverage reports and I have a > question. > > I'm doing aggregated test coverage reports across a multi-module project, > after I run the reports over the project, sometime I'm getting some lines of > the source code in red, but with a number greater than zero on them (please > see image attached), and I'm wondering what does this means? Or how can I > interpret this?... or maybe this is a bug? > > I will really appreciate if you take some time to take a look at this, > since I can't find any information on the web. > > Thanks in advance. > Mario Parra > > -------------- next part -------------- > An HTML attachment was scrubbed... > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: cobertura_question.JPG > Type: image/jpeg > Size: 4409 bytes > Desc: cobertura_question.JPG > > ------------------------------ > > Message: 2 > Date: Tue, 18 Jan 2011 20:36:49 +0000 > From: "John W. Lewis" <Joh...@sa...> > Subject: Re: [Cobertura-devel] Cobertura Question > To: Parra Virgen Mario-B15605 <B1...@fr...>, > "cob...@li..." > <cob...@li...> > Message-ID: > <EC3...@ME...> > Content-Type: text/plain; charset="us-ascii" > > > The line was executed 3 times, but the true or the false of the if > statement was not covered. > > Hover over the conditional in the if statement. You will see something > like 1/2 conditionals covered. > > From: Parra Virgen Mario-B15605 [mailto:B1...@fr...] > Sent: Tuesday, January 18, 2011 3:31 PM > To: cob...@li... > Subject: [Cobertura-devel] Cobertura Question > > Hello, > > I'm currently using Cobertura for test coverage reports and I have a > question. > > I'm doing aggregated test coverage reports across a multi-module project, > after I run the reports over the project, sometime I'm getting some lines of > the source code in red, but with a number greater than zero on them (please > see image attached), and I'm wondering what does this means? Or how can I > interpret this?... or maybe this is a bug? > > I will really appreciate if you take some time to take a look at this, > since I can't find any information on the web. > > Thanks in advance. > Mario Parra > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 3 > Date: Tue, 18 Jan 2011 15:34:18 -0500 > From: David Read <dav...@bl...> > Subject: Re: [Cobertura-devel] Cobertura Question > To: Parra Virgen Mario-B15605 <B1...@fr...> > Cc: "cob...@li..." > <cob...@li...> > Message-ID: > <AAN...@ma...<AANLkTiktzFcfQ-5E%2BL...@ma...> > > > Content-Type: text/plain; charset="windows-1252" > > Mario, > > The issues is that you are not testing all true/false cases in your "if" > statement. You are probably getting to that "if" statement with req_reply > always being null (or not null). Cobertura will flag that since you > haven't > covered the Boolean completely. > > Regards, > > Dave > > > 2011/1/18 Parra Virgen Mario-B15605 <B1...@fr...> > > > Hello, > > > > > > > > I?m currently using Cobertura for test coverage reports and I have a > > question. > > > > > > > > I?m doing aggregated test coverage reports across a multi-module project, > > after I run the reports over the project, sometime I?m getting some lines > of > > the source code in red, but with a number greater than zero on them > (please > > see image attached), and I?m wondering what does this means? Or how can I > > interpret this?... or maybe this is a bug? > > > > > > > > I will really appreciate if you take some time to take a look at this, > > since I can?t find any information on the web. > > > > > > > > Thanks in advance. > > > > Mario Parra > > > > > > > > > > > ------------------------------------------------------------------------------ > > 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 > > > > > > > -- > David S. Read > CTO > *CISSP, RHCE, SCJP > *Blue Slate Solutions > 39 Columbia St. > Albany, NY 12207 > 518-810-0368 > www.blueslate.net > > This e-mail and any files transmitted with it are for the sole use of Blue > Slate Solutions > and the intended recipient(s) and may contain confidential and privileged > information. > If you are not the intended recipient, please contact the sender by reply > e-mail and > destroy all copies of the original message. Any unauthorized review, use, > disclosure, > dissemination, forwarding, printing or copying of this email or any action > taken in > reliance on this e-mail is strictly prohibited and may be unlawful. > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > > ------------------------------------------------------------------------------ > 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 > > > End of Cobertura-devel Digest, Vol 57, Issue 8 > ********************************************** > |