ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Fisher <fish...@mayaviz.com>
Subject Re: Junit and Ant: batchtest
Date Thu, 08 Aug 2002 17:04:45 GMT
Thanks!!!! My fileset dir should have been "c:/code/vizCommon/src"

Sean Fisher

Dominique Devienne wrote:

> Your 'dir' attribute of the <fileset> seems incorrect.
> Probably should be <fileset dir="c:/code/vizCommon/src/test">,
> assuming your package name is common.data. Just guessing though. --DD
>
> -----Original Message-----
> From: Sean Fisher [mailto:fishers@mayaviz.com]
> Sent: Thursday, August 08, 2002 11:57 AM
> To: ant-user@jakarta.apache.org
> Subject: Junit and Ant: batchtest
>
> I'm using ant and junit with the batchtest property. The pattern matching
> with the fileset property is correctly matching my class names
> but when junit goes to execute the classes it doesn't prepend the test
> classes w/ the package info, is there a way around this besides
> ripping out the package declarations in my classes?
>
> Here's the xml...
>
>   <target name="runTest">
>     <junit printsummary="yes" haltonfailure="no">
>       <classpath path="${subproj.vizCommon.cp}"/>
>       <formatter type="plain" />
>
>       <batchtest fork="yes" todir=".">
>         <fileset dir="c:/code/vizCommon/src/test/common/data">
>           <include name="**/Junit*.java"/>
>           <exclude name="**/Test*"/>
>         </fileset>
>       </batchtest>
>     </junit>
>   </target>
> Any help appreciated,
> Sean Fisher
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


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


Mime
View raw message