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 168785 - Not all test results shown
Summary: Not all test results shown
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-19 21:04 UTC by rost
Modified: 2012-05-24 05:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example project demonstrating the bug (8.47 KB, application/x-gzip)
2009-07-19 21:05 UTC, rost
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rost 2009-07-19 21:04:51 UTC
In one of our projects we test that closing our applications calls the correct exit functions. When exiting the
application from within the unit test, the unit test always fails with an error message (Forked Java VM exited
abnormally...). Therefore we always write in those cases another unit test that does the real testing. Unfortunately,
the test results of the second test are not displayed in the Test Results window.

I will attach an example project for easy reproduction of the problem.
Comment 1 rost 2009-07-19 21:05:59 UTC
Created attachment 84912 [details]
Example project demonstrating the bug
Comment 2 rost 2009-07-19 21:11:27 UTC
In the attached example project you find the application NewMain, that just writes a time stamp into its preferences on
exit.
There are three associated unit tests, the first one just starts and exits the example application, the second and third
one are functionally identical, they just test, if the time stamp was written.
If you test the project you will see that the results of NewMain_2_Test appear in the text window but the test and its
result is never shown in the Test Results window. The next unit test (NewMain_3_Test) is shown correctly.

Looks like the UI has a problem with tests that are executed directly after a failed test.
Comment 3 Victor Vasilyev 2009-11-11 15:15:04 UTC
It is reproducible in
Product Version: NetBeans IDE Dev (Build 091111-77156c93b678)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows Vista version 6.0 running on x86; Cp1251; ru_RU (nb)
Comment 4 Theofanis Oikonomou 2012-05-23 12:41:20 UTC
Fixed: http://hg.netbeans.org/core-main/rev/98dc3b2cdb39
Comment 5 Quality Engineering 2012-05-24 05:30:08 UTC
Integrated into 'main-golden', will be available in build *201205240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/98dc3b2cdb39
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Issue #168785 - Not all test results shown