Errors in RunListeners
I recently ran into a situation where one of my RunListeners was throwing an error (attempted to create invalid XML - oops). This produced some very strange results: my RunListener stopped receiving callbacks after this happened. I debugged it down to the line that was throwing the error, and noticed it was getting sucked up into this "SafeNotifier":
Main Thread (Suspended)
SafeNotifier/run
org.flexunit.runner.notification::RunNotifier/fireTestFailure
org.flexunit.internals.runners.model::EachTestNotifier/addFailure
org.flexunit.runners::BlockFlexUnit4ClassRunner/handleBlockComplete
org.flexunit.token::AsyncTestToken/sendResult
etc...
Is there any way around this? How might I go about catching an error in my RunListener? Or even better, letting the error cause a failure in the test that the current call into the RunListener is assocated with?
Thanks!
Brian
