Dawid Weiss created LUCENE-5921:
-----------------------------------
Summary: Reports of TestRuleLimitSysouts exceeded for failed tests
Key: LUCENE-5921
URL: https://issues.apache.org/jira/browse/LUCENE-5921
Project: Lucene - Core
Issue Type: Bug
Components: general/test
Reporter: Dawid Weiss
Assignee: Dawid Weiss
Priority: Minor
Fix For: 5.0
This may happen for thread-related errors (for example uncaught exceptions in a
non-test thread). Then the failure is reported/ registered to JUnit after the
test's rules have completed so TestRuleLimitSysouts doesn't see the test/ suite
as failing.
A workaround would be to use specialized test listener... but it's a bit
clumsy. It is a very specific corner case; for normal errors happening in the
test's thread TestRuleLimitSysouts won't fire.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]