tags:

views:

12

answers:

1

i am using ant script and running a junit, the problem i am facing is that i am unable to get the output on console, rather i get the output in a log file.

how can i achieve that.. i am using the following script.

<target name="validate_mapping" description="Testing the Hibernate ">

        <path id="validator.classpath">
            <fileset dir="${basedir}\lib">
                <include name="Junit-Temp-Test.jar" />
            </fileset>
        </path>

        <junit printsummary="yes">
            <formatter type="plain"/>
            <test name="com.ofss.fc.junit.test.SampleTest" />
            <classpath>
                <path refid="validator.classpath" />
                <path refid="lib.ext.classpath" />
            </classpath>
        </junit>    
    </target>

Please help me.

+1  A: 

I think you need to specify "usefile" attribute <formatter usefile="false" type="plain"/>

Marimuthu Madasamy