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

Speed up junit tests

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • None
    • None
    • New

    Description

      As Lucene grows, so does the number of JUnit tests. This is obviously a good thing, but it comes with longer and longer test times. Now that we also run back compat tests in a standard test run, this problem is essentially doubled.

      There are some ways this may get better, including running parallel tests. You will need the hardware to fully take advantage, but it should be a nice gain. There is already an issue for this, and Junit 4.6, 4.7 have the beginnings of something we might be able to count on soon. 4.6 was buggy, and 4.7 still doesn't come with nice ant integration. Parallel tests will come though.

      Beyond parallel testing, I think we also need to concentrate on keeping our tests lean. We don't want to sacrifice coverage or quality, but I'm sure there is plenty of fat to skim.

      I've started making a list of some of the longer tests - I think with some work we can make our tests much faster - and then with parallelization, I think we could see some really great gains.

      Attachments

        1. FastCnstScoreQTest.patch
          1 kB
          Mark Miller
        2. hi_junit_test_runtimes.png
          36 kB
          Mark Miller
        3. LUCENE-1844_norms.patch
          2 kB
          Robert Muir
        4. LUCENE-1844.patch
          89 kB
          Michael McCandless
        5. LUCENE-1844.patch
          71 kB
          Michael McCandless
        6. LUCENE-1844.patch
          46 kB
          Erick Erickson
        7. LUCENE-1844-Junit3.patch
          2 kB
          Erick Erickson

        Issue Links

          Activity

            People

              mikemccand Michael McCandless
              markrmiller@gmail.com Mark Miller
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: