You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/04/19 22:17:53 UTC

svn commit: r1328102 - /lucene/dev/trunk/lucene/common-build.xml

Author: rmuir
Date: Thu Apr 19 20:17:52 2012
New Revision: 1328102

URL: http://svn.apache.org/viewvc?rev=1328102&view=rev
Log:
when using -Dtestcase etc, show the system out/err even if the test passes

Modified:
    lucene/dev/trunk/lucene/common-build.xml

Modified: lucene/dev/trunk/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/common-build.xml?rev=1328102&r1=1328101&r2=1328102&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/common-build.xml (original)
+++ lucene/dev/trunk/lucene/common-build.xml Thu Apr 19 20:17:52 2012
@@ -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