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

Running tests from eclipse sometimes ignores the whole test

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2, 6.0
    • None
    • None
    • New

    Description

      If your test needs 4.2 features (e.g. @SuppressCodecs' Lucene40, Lucene41), when you run 'ant test' it does the right thing, and picks the right codecs.

      But from eclipse instead it often ignores all test methods and prints:
      NOTE: Class not allowed to use postings format: Lucene41. Suppressed codecs: [Lucene41, Lucene40]

      You can reproduce this by adding this to e.g. TestDemo and running it from ant vs eclipse:

      @SuppressCodecs({"Lucene40", "Lucene41"})
      

      I havent had time to dig into this yet, but its annoying for eclipse developers. some property must have a bad default value or something thats inconsistent with what ant sets: somehow ant is doing it right.

      I gather it probably happens to other IDEs too.

      Attachments

        1. LUCENE-4805.patch
          1 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: