This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178037 - Harness test coverage fails with recent JDKs
Summary: Harness test coverage fails with recent JDKs
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: rmichalsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-02 18:13 UTC by tomwheeler
Modified: 2009-12-05 03:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomwheeler 2009-12-02 18:13:48 UTC
I was upgrading an application from the NB 6.5 platform to 6.7 and I was happy to finally be able to use the new unit test coverage added in issue #145107).  I was shocked to see that the report showed my unit test coverage at 0% for all modules.  

Upon further investigation, I found that this is a bug in Cobertura which has since been fixed:

   http://jira.codehaus.org/browse/MCOBERTURA-101

Therefore, fixing the problem in the NetBeans build harness is as simple as upgrading to at least Cobertura 1.9.2.  I tried it with 1.9.3 and it seems to work well.

FWIW, here are the details about the system where I encountered the problem:

   Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
   System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 1 rmichalsky 2009-12-03 03:43:39 UTC
Ok, thanks for letting us know, I'll upgrade Cobertura in NB.
Comment 2 Jesse Glick 2009-12-04 08:39:23 UTC
Reported in 6.7, not 6.9.
Comment 3 rmichalsky 2009-12-04 12:06:56 UTC
Ooops, I wanted to set target milestone, not version.
core-main #cbbb1edad51e
Comment 4 Quality Engineering 2009-12-05 03:54:18 UTC
Integrated into 'main-golden', will be available in build *200912050227* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cbbb1edad51e
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #178037: upgrade to Cobertura 1.9.3