You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dawid Weiss (JIRA)" <ji...@apache.org> on 2014/09/03 22:46:54 UTC

[jira] [Created] (LUCENE-5921) Reports of TestRuleLimitSysouts exceeded for failed tests

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org