Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1652

Allow single unit test to be executed from SOLR build.xml

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.2, 1.3, 1.4
    • 1.5
    • Build
    • None
    • My local MacBook

    Description

      While playing around and running someone's example code in the form of a test, I realized it might be nice to run a single test from the ant command line when testing SOLR. To my knowledge, there is no way to do this. So, I googled around and found a nice way of doing it. I'll contribute a patch that allows you to do:

      ant runtest -Dtest=<fully qualified class name or just class name no package> [-Dargs=<jvm args for junit>]

      which will run one of SOLR's unit tests at a time. You can also use *'s in the -Dtest= to run many test cases that match the * expression too.

      Attachments

        1. SOLR-1652.Mattmann.121209.patch.txt
          1.0 kB
          Chris A. Mattmann

        Activity

          People

            Unassigned Unassigned
            chrismattmann Chris A. Mattmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: