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 245023

Summary: [Coverage] Coverage view does not show if not all paths have been passed for a code section
Product: projects Reporter: tomzi <tomzi>
Component: MavenAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: IDE log

Description tomzi 2014-06-13 06:36:08 UTC
Steps:
.) Right click <project>/Code Coverage/Show Report (Make sure 'Code Coverage/Show Editor bar') is enabled)
.) Click  'All Tests' on the Report editor window.
.) The Test is being started and the coverage is shown
.) Open a class where the test does not test all paths for some 'if' statement, eg
if {boolean1 && boolean2) {
System.out.println("Gotcha");
}
and the test only test if boolean1 == true and boolean2 == false

Actual: Coverage would show the path being green and does not show that only 1 of 4 paths have been tested

Expected: Coverage should mark this section 'Yellow' and show, eg in a hover window that only 1/4 paths have been tested

Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Linux version 3.5.0-49-generic running on amd64
Java; VM; Vendor = 1.7.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.60-b09
Comment 1 tomzi 2014-06-13 06:36:13 UTC
Created attachment 147658 [details]
IDE log
Comment 2 tomzi 2014-07-03 10:42:55 UTC
May be there could be a linkt to see the html, that is generated in the target/site/jacoco/index.html folder, which has also a really nice view of the report ...
Comment 3 Theofanis Oikonomou 2014-07-25 13:21:11 UTC
AFAICT currently there is only support for C0 coverage http://www.eclemma.org/jacoco/trunk/doc/counters.html. Support for C1 coverage should be added. Changing issue type. Thank you for reporting
Comment 4 Martin Balin 2016-07-07 08:39:21 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss