lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4406) Print out where tests failed at the end of running the Test Suite
Date Wed, 19 Sep 2012 08:27:08 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458497#comment-13458497
] 

Dawid Weiss commented on LUCENE-4406:
-------------------------------------

I've worked on the release today anyway to fix the problematic non-allowed XML characters
in reports so I added this as well. It looks pretty much like this (the number of failures
to show is configurable):

{code}
[junit4:junit4]
[junit4:junit4] Tests with failures (first 2 out of 6):
[junit4:junit4]   - com.carrotsearch.ant.tasks.junit4.tests.TestStatuses.failure
[junit4:junit4]   - com.carrotsearch.ant.tasks.junit4.tests.TestStatuses.error
{code}

I didn't include the throwable's message like Maven does because it really doesn't make sense
here -- if you care about a failure you'll need the stack (and possibly sysouts) too so you'll
have to locate it anyway. Btw. remember that all failures are also marked with a "<<<"
so grepping for this in context may also provide a nice shortcut to locate the full failure
string.
                
> Print out where tests failed at the end of running the Test Suite
> -----------------------------------------------------------------
>
>                 Key: LUCENE-4406
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4406
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/test
>            Reporter: Grant Ingersoll
>            Priority: Minor
>
> 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:
> {code}
> <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>
> {code} 
> which can likely be modified for Lucene.  I can do it, but wanted to see if others had
an opinion.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message