From: Steven C. <ste...@re...> - 2010-12-30 16:59:29
|
Is there a way we could get the coverage result percentage to allow for decimal precision, implement a new feature like in the .bat file have --precision 4, and it would do the percentages to 4 decimal places? When I saw 0% coverage, I assumed no coverage at all, but that's not the case. 0.13% > 0% On 12/30/2010 10:48 AM, Piotr Tabor wrote: > I think that rounding/truncating here is right. 0.13% is 0. > > Piotr > > On Thu, Dec 30, 2010 at 5:09 PM, Steven Christou > <ste...@re... > <mailto:ste...@re...>> wrote: > > I know the percentage is HORRIBLE. This is new feature development I'm > working on. Getting it to work was a tough task alone, but testing > with > cobertura shows I have a lot of testing development to do! I was > wondering if it should still produce 0% coverage, even though > there are > a few lines of code that are hit. If you want, I can take a look > at the > code base and provide a fix, and submit it. I've been wanting to > contribute for a while now :) > > On 12/30/2010 2:26 AM, John W. Lewis wrote: > > 3/2300 gives you 0.13%. I assume it is being rounded/truncated > to the nearest percentage point. > > > > The most horrible thing about it is that there is no more than > 1% coverage. :) > > > > I'm glad you got it working. > > > > -----Original Message----- > > From: Steven Christou [mailto:ste...@re... > <mailto:ste...@re...>] > > Sent: Wednesday, December 29, 2010 7:25 PM > > To: cob...@li... > <mailto:cob...@li...> > > Subject: [Cobertura-devel] Possible bug in html reporting file > > > > I believe I might have found a bug in the HTML format report. If > you have a file that has about 3 lines of coverage, but contains > about 2300 lines of code (I know this is HORRIBLE), it produces a > result of 0% coverage. I assume it should be producing a result of > 1%, because there still is coverage in the file, it's just not a > lot of coverage. > > Email Disclaimer: > > http://www.redprairie.com/emaildisclaimer/ > > > > > > > ------------------------------------------------------------------------------ > > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers to consolidate database storage, standardize their > database environment, and, should the need arise, upgrade to a > full multi-node Oracle RAC database without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > > _______________________________________________ > > Cobertura-devel mailing list > > Cob...@li... > <mailto:Cob...@li...> > > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > Email Disclaimer: > http://www.redprairie.com/emaildisclaimer/ > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows > customers > to consolidate database storage, standardize their database > environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC > database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > <mailto:Cob...@li...> > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > > > > -- > Pozdrawiam, > Piotr Tabor Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |