ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver <python...@gmail.com>
Subject Re: junit report problem
Date Mon, 17 Apr 2006 05:29:37 GMT
Ivan:

Here it is, utest is for unit test

    <target name="utest" depends="utest-compile">
        <junit printsummary="false"
             errorProperty="test.failed"
             failureProperty="test.failed">
             <classpath refid="test.classpath" />
             <formatter type="brief" usefile="false" />
             <formatter type="xml" />
             <test name="${testcase}" todir="$utest.data.dir}" if="testcase" />

             <batchtest todir="${utest.data.dir}" unless="testcase">
                 <fileset dir="${utest.dir}"
                            includes="**/*Test.class" />
             </batchtest>
        </junit>

        <junitreport todir="${utest.data.dir}" >
            <fileset dir="${utest.data.dir}">
                <include name="Test-*.xml" />
            </fileset>

            <report format="frames"
                todir="${utest.report.dir}" />
        </junitreport>

        <fail message="Test failed. Check log and/or reports. "
if="test.failed" />

    </target>



On 4/17/06, Ivan Rambius Ivanov <rambiusparkisanius@yahoo.com> wrote:
> Hello Oliver,
>
> Please post your usage of <junit> and <junitreport>.
>
> Regards
> Ivan
>
> --- Oliver <python152@gmail.com> wrote:
>
> > Hi, folks,
> >
> > I have a pretty regular junit report setup.
> > All the individual Test-*.xml are generated.
> > However, the transformed
> > xml is just empty. I have xalan.jar in ant/lib, and
> > ant script doesn't
> > report anything wrong.
> >
> > Any idea?
> >
> > Thanks a lot
> >
> > --
> > Oliver
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


--
Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message