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.
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.
Created attachment 84912 [details] Example project demonstrating the bug
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.
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)
Fixed: http://hg.netbeans.org/core-main/rev/98dc3b2cdb39
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