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 245022 - [Coverage] 'Test' button does not show the coverage
Summary: [Coverage] 'Test' button does not show the coverage
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-13 06:28 UTC by tomzi
Modified: 2016-07-07 08:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
IDE log (873.32 KB, text/plain)
2014-06-13 06:28 UTC, tomzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2014-06-13 06:28:52 UTC
Steps:
.) Right click <project>/Code Coverage/Show Report (Make sure 'Code Coverage/Show Editor bar') is enabled)
.) Open the test you want to see coverage for and click 'Test' in the bar below the editor window of the test (next to the 'All Tests', 'Clear', 'Report...', 'Done' button)
.) The Test is being started

Expected:
The new coverage for the class to test

Actual:
No coverage is shown for the class to test

It seems 'Code Coverage' is only shown for the whole module when I click the 'All Tests' button in the Editor window for the test or the 'Run All Tests' button in the 'Code Coverage Report for xxx' editor window



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:28:58 UTC
Created attachment 147657 [details]
IDE log
Comment 2 Theofanis Oikonomou 2014-07-25 10:38:42 UTC
(In reply to tomzi from comment
Comment 3 Theofanis Oikonomou 2014-07-25 10:41:40 UTC
My comment got lost. AFAICT the behavior of the Test button in editor toolbar is the same with the one described at least after version 6.7. Looking at the implementation it is not clear to me if the intention was to just test the specific file or to show coverage just for one file. Thus I changed the issue type. Thank you for reporting.
Comment 4 Martin Balin 2016-07-07 08:38:17 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