On Fri, Dec 2, 2011 at 9:45 AM, Yonik Seeley <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to