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

Reports of TestRuleLimitSysouts exceeded for failed tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • None
    • general/test
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: