Click to See Complete Forum and Search --> : Ant + JUnit: Missing Test Output


dfmclean
06-30-2005, 11:18 AM
I'm trying to set up a configuration that runs our JUnit regession test suite from Ant. It runs, but I can't figure out what is happening to everything that is supposed to go to System.out.

Undoubtedly, I'm doing something stupid, so feel free to make fun of me if you wish, but only if you have a legitimate suggestion.

I'm running Ant 1.6.5 with Java 1.5.0_02 on Red Hat Enterprise Linux WS release 3 (Taroon Update 5).

Here's the task entry:

<target name="regression">
<junit>
<sysproperty key="SynphotLocal" value="false"/>
<sysproperty key="Debug" value="false"/>
<sysproperty key="Dump" value="false"/>
<sysproperty key="ETC.DumpBlackboard" value="false"/>
<sysproperty key="GenerateRegressionFiles" value="false"/>
<sysproperty key="RunRegression" value="true"/>
<sysproperty key="RegressionRepository" value="testFiles/regressionRepository/"/>
<formatter classname="edu.stsci.hst.Formatter" extension=".txt" />
<test name="edu.stsci.hst.BatchLogSuite" outfile="RegressionResults" />
</junit>
<mail mailhost="*" from="*" tolist="*"
subject="ETC regression results" encoding="plain" files="RegressionResults.txt" >
</mail>
</target>

dfmclean
06-30-2005, 02:58 PM
A kind soul provided the answer below in an email.

Hello Donald,

A quick look at you code shows that you are not using
printsummary and showoutput attributes and Ant task.
You can find them described at[1]

HTH Ivan