开发者

taking output on console when running junit through ant script

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>


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜