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

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

Author: dweiss
Date: Mon Apr 16 17:27:59 2012
New Revision: 1326689

URL: http://svn.apache.org/viewvc?rev=1326689&view=rev
Log:
LUCENE-3808: configuration of terminal output for tests. I think I found a
way to please everybody after all... I've defined a set of properties
which one can override using local properties (read before anything else).
The defaults are full class names, no truncating. If one wants short names
(or ellipsis or no output for suites or no output for a particular type of
status, whatever) then define any of these properties in your local
configuration file:

  <!-- Override these in your local properties to your desire. -->
  <!-- Show simple class names (no package) in test suites. -->
  <property name="tests.useSimpleNames" value="false" />
  <!-- Max width for class name truncation.  -->
  <property name="tests.maxClassNameColumns" value="10000" />
  <!-- 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" />

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=1326689&r1=1326688&r2=1326689&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/common-build.xml (original)
+++ lucene/dev/trunk/lucene/common-build.xml Mon Apr 16 17:27:59 2012
@@ -94,7 +94,20 @@
   <property name="tests.verbose" value="false"/>
   <property name="tests.infostream" value="${tests.verbose}"/>
   <property name="tests.heapsize" value="512M"/>
-    
+
+  <!-- Override these in your local properties to your desire. -->
+  <!-- Show simple class names (no package) in test suites. -->
+  <property name="tests.useSimpleNames" value="false" />
+  <!-- Max width for class name truncation.  -->
+  <property name="tests.maxClassNameColumns" value="10000" />
+  <!-- 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" />
+
   <property name="javac.deprecation" value="off"/>
   <property name="javac.debug" value="on"/>
   <property name="javac.source" value="1.6"/>
@@ -745,7 +758,7 @@
                     <fileset dir="${common.dir}/tools/junit4" includes="**/*.txt" />
                 </execution-times>
             </balancers>            
-            
+
             <!-- Reporting listeners. -->
             <listeners>
                 <!-- A simplified console output (maven-like). -->
@@ -755,15 +768,15 @@
                     showOutputStream="true" 
                     showErrorStream="true"
 
-                    showStatusOk="false"
-                    showStatusError="true"
-                    showStatusFailure="true"
-                    showStatusIgnored="true"
+                    showStatusOk="${tests.showSuccess}"
+                    showStatusError="${tests.showError}"
+                    showStatusFailure="${tests.showFailure}"
+                    showStatusIgnored="${tests.showIgnored}"
 
-                    showSuiteSummary="true"
+                    showSuiteSummary="${tests.showSuiteSummary}"
 
-                    useSimpleNames="true"
-                    maxClassNameColumns="70"
+                    useSimpleNames="${tests.useSimpleNames}"
+                    maxClassNameColumns="${tests.maxClassNameColumns}"
                 />
 
                 <!-- Emits full status for all tests, their relative order on slaves. -->