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 120142 - Missing "passed" nodes while debuging test
Summary: Missing "passed" nodes while debuging test
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: PC Windows XP x64
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: SIMPLEFIX
: 113314 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-26 10:25 UTC by Jiri Vagner
Modified: 2008-04-02 21:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
run-and-debug-test.jpg (172.32 KB, image/jpeg)
2007-10-26 10:26 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2007-10-26 10:25:51 UTC
In JUnit Test Result window passed nodes are not displayed in result tree while debuging test, the same test executed
via "Run file" command shows complete info. See the screenshot.

Steps to reproduce:
 - in Java App. project create test class with a few falling and a few passing methods 
 - run the test via "Run file" command (SHIFT+F6) and check the content of JUnit Test Result window
 - run the test via "Debug file" command (CTRL+SHIFT+F5) and check the content of JUnit Test Result window

Product Version: NetBeans IDE Dev (Build 200710241200)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 1 Jiri Vagner 2007-10-26 10:26:38 UTC
Created attachment 51760 [details]
run-and-debug-test.jpg
Comment 2 Marian Petras 2007-10-31 20:48:27 UTC
I can reproduce this with NetBeans builds 071018 and 071031, running on Windows XP (64-bit), JDK 1.6.0_03.

I cannot reproduce this when running on Linux (build 071026, Intel PC, 32-bit, tested with JDKs 1.5.0_13 and 1.6.0_03).
Comment 3 Marian Petras 2007-11-02 13:22:32 UTC
Fixed in the trunk.

The cause of this bug was simple - a platform-dependent directory separator ('/') was used instead of
platform-independent placeholder File.separatorChar.

Modified file:
    junit/src/org/netbeans/modules/junit/output/JUnitOutputReader.java   (1.50)

Diff:
http://deadlock.netbeans.org/fisheye/browse/netbeans/junit/src/org/netbeans/modules/junit/output/JUnitOutputReader.java?r1=1.49&r2=1.50
Comment 4 Jiri Vagner 2007-11-22 13:43:37 UTC
Verified

Product Version: NetBeans IDE Dev (Build 200711220000)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 5 Marian Petras 2008-04-02 21:21:42 UTC
*** Issue 113314 has been marked as a duplicate of this issue. ***