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.
There should be a support for reporting Errors logged in ide.log file, either by providing custom ErrorManager for IDE or by scanning ide.log file as postprocessing.
We prefer impl of custom ErrorManager, this would help us for example for tests for window system, as situations where errors are reported through ErrorManager are quite common. I'm raising priority, because I believe this is important and desired for some time. Change back if you disagree, of course.
*** Issue 18155 has been marked as a duplicate of this issue. ***
First version of custom error manager functionality is in CVS. You can try it. Please note, you need updatet extra binaries for XTest and it will work only on builds with openide specification version > 2.0
XTest error manager does not work. Because of clashes with NbErrorManager, its functionality was temporarily disabled. This needs to be solved soon.
Created attachment 15706 [details] implementation of ErrorManager
I've implemented simple ErrorManager and added it to nbjunit-ide.jar. The notification about exception is in the JUnitTestRunner class. Look at the patch.
Thanks to Petr Zajac I added error manager functionality to XTest. It is enabled by default. To disable use xtest.ide.error.manager=false. If an exception or error is caugth by error manager, the test case currently running is signed as error and appropriate stack trace is added to results.
Great. It looks fine. Jirka please add failure for ErrorManager.UNKNOWN priority. This priority is notified using ErrorManager.notify(Throwable t) Thanx
OK, ErrorManager.UNKNOWN was included too.
v