开发者

taking output on console when running junit through ant script

开发者 https://www.devze.com 2023-01-20 23:14 出处:网络
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.

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

精彩评论

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

关注公众号