when using -Dtestcase etc, show the system out/err even if the test passes

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1328102 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-04-19 20:17:52 +00:00
parent e1ac7b416c
commit d21d0e2057
1 changed files with 11 additions and 1 deletions

View File

@ -103,7 +103,6 @@
<!-- Show suite summaries for tests. -->
<property name="tests.showSuiteSummary" value="true" />
<!-- Configure test emission to console for each type of status -->
<property name="tests.showSuccess" value="false" />
<property name="tests.showError" value="true" />
<property name="tests.showFailure" value="true" />
<property name="tests.showIgnored" value="true" />
@ -614,6 +613,12 @@
<condition property="tests.method" value="${testmethod}">
<isset property="testmethod" />
</condition>
<condition property="tests.showSuccess" value="true">
<isset property="tests.class" />
</condition>
<!-- default -->
<property name="tests.showSuccess" value="false"/>
<!-- Test macro using junit4. -->
<macrodef name="test-macro" description="Executes junit tests.">
@ -897,6 +902,11 @@ ant -Dtests.haltonfailure=false test
# Run more verbose output (slave JVM parameters, etc.).
ant -verbose test
# Include additional information like what is printed to
# sysout/syserr, even if the test passes.
# Enabled automatically when running for a single test case.
ant -Dtests.showSuccess=true test
# Display local averaged stats, if any (30 slowest tests).
ant test-times -Dmax=30