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

identify and remove unused test files

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 7.0
    • None
    • None

    Description

      It appears that a number of test files are unused and hence could/should be removed.

      Step 1:

      • identify potentially unused files e.g.
        for ff in `find ./solr/core/src/test-files -name "*.xml"`
        do
          file=`basename $ff`
          git grep -l $file >/dev/null
          rcode=$?
          if [[ $rcode -ne 0 ]]
          then
            echo $ff
          fi
        done
        

      Step 2:

      • remove the files concerned
      • run ant test to check if tests still pass
      • create patch or pull request

      Step 3:

      • optionally share any scripts or commands used in steps 1 and 2

      Attachments

        1. SOLR-10535.patch
          47 kB
          Jason Gerlowski

        Activity

          People

            cpoerschke Christine Poerschke
            cpoerschke Christine Poerschke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: