Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5921

Reports of TestRuleLimitSysouts exceeded for failed tests

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: general/test
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              dweiss Dawid Weiss
              Reporter:
              dweiss Dawid Weiss
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: