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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.9, 6.0
    • None
    • None
    • 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

            dweiss Dawid Weiss
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: