Here's the junit target I have (verbatim). It allows me to include or
exclude specific tests, or groups of tests by using the
test.junit.include.files or test.junit.exclude.files properties, but
those can be left blank.
<junit haltonfailure="no"
filtertrace="on"
showoutput="yes"
printsummary="yes"
fork="yes"
dir="${jdataglyphs.build.dir}">
<classpath>
<path refid="jdataglyphs.classpath"/>
<pathelement location="${jdataglyphs.test.classes.dir}"/>
</classpath>
<formatter type="plain" usefile="yes"/>
<formatter type="xml" usefile="yes"/>
<batchtest todir="${jdataglyphs.test.results.dir}/test-results-data">
<fileset dir="${jdataglyphs.test.src}"
includes="${test.junit.include.files}"
excludes="${test.junit.exclude.files}">
<size value="0" when="more"/>
</fileset>
</batchtest>
</junit>
On 4/30/07, Pamela perez <patuco_69@yahoo.es> wrote:
> Thanks that already I have proven it and it does not work.
>
>
>
>
> tests.dir directory TestsCases
>
> <junit printsummary="yes" fork="yes" haltonfailure="yes">
>
> <classpath refid="tests-classpath"/>
> <classpath refid="compile.classpath"/>
> <formatter type="plain"/>
> <batchtest>
> <fileset dir="${tests.dir}">
> </fileset>
> </batchtest>
> </junit>
>
> he is not correct???
>
> ----- Mensaje original ----
> De: David Kavanagh <dkavanagh@gmail.com>
> Para: Ant Users List <user@ant.apache.org>
> Enviado: lunes, 30 de abril, 2007 19:19:24
> Asunto: Re: execute junit in directory
>
> Pamela,
> You can use the <batchtest> sub-element instead of <test>. that allows
> you to specify a fileset which pulls in all of your junit test files.
>
> David
>
> On 4/30/07, Pamela perez <patuco_69@yahoo.es> wrote:
> > As I can execute all the test you marry of a directory. this script executes single
one.
> >
> > <target name="test">
> > <junit fork="yes" haltonfailure="yes">
> > <test name="${test.class.name}" />
> > <formatter type="plain" usefile="false" />
> > <classpath refid="test.classpath" />
> > </junit>
> > </target>
> >
> > I need to execute them all then testcases.
> >
> > help me
> >
> >
> >
> >
> >
> > ____________________________________________________________________________________
> > LLama Gratis a cualquier PC del Mundo.
> > Llamadas a fijos y móviles desde 1 céntimo por minuto.
> > http://es.voice.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|