#165947: No output for tests in the test results window

Erno Mononen <[email protected]>
Newsgroups gmane.comp.java.netbeans.reviewers
Message-ID <[email protected]>
Please review the fix for 
http://www.netbeans.org/issues/show_bug.cgi?id=165947

Description: No output is printed to the output pane in the test results 
window when running a test, not even when the test fails with a stack 
trace. Typically happens when running a single test that throws an 
exception during initialization. This affects all the test runners in 
the IDE that use the common api, i.e. Java/Ruby/PHP/Python.

Problem: Caused by incorrect initialization of the IO container 
component that the output pane uses. In certain cases it didn't get 
initialized until the test had finished, causing all the earlier output 
to be lost.

Fix: Initialize the IO container immediately when creating the display 
handler component for the test execution.

Changeset: http://hg.netbeans.org/main-golden/rev/bd9a8a4b4b46

Verified by QE (mschovanek) and peer (kaktus).

Thanks,
Erno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.