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

Print out where tests failed at the end of running the Test Suite

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0, 6.0
    • Component/s: general/test
    • Labels:
      None

      Description

      It would be nice if, at the end of running ant test, it spit out the names of which tests failed so that one doesn't have to go scrolling up through the output or go run grep on the test-reports as a separate step.

      For another project, I use:

      <target name="test-summary">
          <echo>Looking for summaries in: ${build.dir}/test-reports with basedir: ${basedir}</echo>
          <echo>Errors:</echo>
          <exec executable="grep">
                  <arg value="-r"/>
                  <arg value="-rl"/>
                  <arg value="errors=\&quot;[1-9]\&quot;"/>
                  <arg value="${build.dir}/test-reports"/>
          </exec>
          <echo>Failures:</echo>
          <exec executable="grep">
                  <arg value="-r"/>
                  <arg value="-rl"/>
                  <arg value="failures=\&quot;[1-9]\&quot;"/>
                  <arg value="${build.dir}/test-reports"/>
          </exec>
        </target>
      

      which can likely be modified for Lucene. I can do it, but wanted to see if others had an opinion.

        Attachments

          Activity

            People

            • Assignee:
              dweiss Dawid Weiss
              Reporter:
              gsingers Grant Ingersoll
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: