lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: getting incremental output from our tests
Date Fri, 02 Dec 2011 14:57:01 GMT
On Fri, Dec 2, 2011 at 9:45 AM, Yonik Seeley <yonik@lucidimagination.com> wrote:
>
> Should we add a tests.console or tests.buffer property to control this
> from the command line?
>

Can't we just turn it on if you use -Dtestcase? this seems to work well for me:

Index: common-build.xml
===================================================================
--- common-build.xml	(revision 1209506)
+++ common-build.xml	(working copy)
@@ -58,6 +58,16 @@
     <pathelement location="${junit-location.jar}"/>
   </path>

+  <condition property="junit.showoutput">
+    <isset property="testcase"/>
+  </condition>
+
+  <condition property="junit.outputtoformatters">
+    <not>
+      <isset property="testcase"/>
+    </not>
+  </condition>
+
   <path id="ant-path">
     <fileset dir="${common.dir}/lib" includes="ant-*.jar"/>
   </path>
@@ -540,7 +550,8 @@
 	    -->
     	<touch file="@{tempDir}/@{threadNum}/quiet.ant" verbose="false"
mkdirs="true"/>
 	    <junit printsummary="off" haltonfailure="no" maxmemory="512M"
tempdir="@{tempDir}/@{threadNum}"
-	      errorProperty="tests.failed" failureProperty="tests.failed"
forkmode="perBatch" dir="@{tempDir}/@{threadNum}">
+	      errorProperty="tests.failed" failureProperty="tests.failed"
forkmode="perBatch" dir="@{tempDir}/@{threadNum}"
+              showoutput="${junit.showoutput}"
outputtoformatters="${junit.outputtoformatters}">
 	      <classpath refid="@{junit.classpath}"/>
 	      <assertions>
 	        <enable package="org.apache.lucene"/>

-- 
lucidimagination.com

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


Mime
View raw message