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 87395 - debug-test does not show results
Summary: debug-test does not show results
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-18 12:02 UTC by tboerkel
Modified: 2007-08-29 17:33 UTC (History)
0 users

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 tboerkel 2006-10-18 12:02:02 UTC
Running a JUnit test with "Debug file" does not show the results in the "JUnit
Test Results" pane. It works OK with "Run file".

Using NB 5.5 RC2.
Comment 1 Marian Petras 2007-01-16 14:33:26 UTC
Confirmed, accepted.

Tested on Windows 2003, NetBeans 5.5 FCS, JDK 1.5.0_11.
Comment 2 Jiri Vagner 2007-07-26 14:19:46 UTC
The same issue found with ....

Product Version: NetBeans IDE Dev (Build 200707260307)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)
Comment 3 Marian Petras 2007-08-22 17:59:04 UTC
This is caused by a mix of two issues:

1) The projects do not invoke tests with the Ant test launcher
   so the test results are too brief to provide any information
   useful for the test results window.
2) The JUnit module has some bugs in routines that analyse
   structure of the Ant task currently running.
Comment 4 Marian Petras 2007-08-22 18:05:32 UTC
I have fixed the second part of the fix - the parts in JUnit module that analyse running Ant tasks.

Modified files:
    junit/src/org/netbeans/modules/junit/output/:
                                           JUnitAntLogger.java   (1.23)
                                           JUnitOutputReader.java   (1.38)

Diffs:
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/JUnitAntLogger.java?r1=1.22&r2=1.23&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/JUnitOutputReader.java?r1=1.37&r2=1.38&diff_format=u
Comment 5 Marian Petras 2007-08-22 18:39:29 UTC
The issue of not using Ant launcher for JUnit tests should be fixed in one step together with issue #98472 ("Debug of
jUnit4 tests doesn't work") - see the suggested changes in the bug report.
Comment 6 Marian Petras 2007-08-29 17:33:21 UTC
Bug #98472 was just fixed and the applied changed also fix this issue. Marking as FIXED.