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

Fail tests if they print over the given limit of bytes to System.out or System.err

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Some tests print so much stuff they are now undebuggable (see LUCENE-5612).

      From now on, when tests.verbose is false, the number of bytes printed to standard output and error streams will be accounted for and if it exceeds a given limit an assertion will be thrown. The limit is adjustable per-suite using Limit annotation, with the default of 8kb per suite. The check can be suppressed entirely by specifying SuppressSysoutChecks.

        Attachments

        1. LUCENE-5622.patch
          4 kB
          Robert Muir
        2. LUCENE-5622.patch
          13 kB
          Dawid Weiss
        3. LUCENE-5622.patch
          20 kB
          Robert Muir
        4. LUCENE-5622.patch
          15 kB
          Dawid Weiss
        5. LUCENE-5622.patch
          34 kB
          Dawid Weiss

          Activity

            People

            • Assignee:
              dweiss Dawid Weiss
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: