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.
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
Created attachment 147657 [details] IDE log
(In reply to tomzi from comment
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.
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