You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ramu S <sr...@gmail.com> on 2007/03/27 14:17:08 UTC

help in junit task

Hi,
 In our project we are using junit task with batchtest. Our classes for unit
testing are in jars. The problem is batchtest task looks only inside the dir
attribute. i want  batchtest to look in to the jar which is included in
classpath. i even tried by adding that jar in env variable. nothing helped
me. <test> task work for me.... But the problem is we have nearly 40 junit
classes and it is not the best option to enter 40 junit classes. Since batch
test provides regexp. it is the best option for us. Running it as a test
suite  is also problem for us as we need seperate xml output for us....My
question is how make batchtest task look into the jar???.. If it is not
possible do we have any alternative???

RE: help in junit task

Posted by Vladimir Egorov <ve...@bea.com>.
I have not tried it myself, but try to hack it using zipfileset instead
of fileset inside <batchtest>. See if any of these work:

(1)

  <batchtest ...>
    <zipfileset src="my.jar" ...>

(2)

  <zipfileset id="my.jar" src="my.jar" ...>
  <batchtest ...>
    <fileset id="my.jar"/>

--Vladimir

> -----Original Message-----
> From: Ramu S [mailto:sramho@gmail.com]
> Sent: Tuesday, March 27, 2007 5:17 AM
> To: user@ant.apache.org
> Subject: help in junit task
> 
> Hi,
>  In our project we are using junit task with batchtest. Our classes
for
> unit
> testing are in jars. The problem is batchtest task looks only inside
the
> dir
> attribute. i want  batchtest to look in to the jar which is included
in
> classpath. i even tried by adding that jar in env variable. nothing
helped
> me. <test> task work for me.... But the problem is we have nearly 40
junit
> classes and it is not the best option to enter 40 junit classes. Since
> batch
> test provides regexp. it is the best option for us. Running it as a
test
> suite  is also problem for us as we need seperate xml output for
us....My
> question is how make batchtest task look into the jar???.. If it is
not
> possible do we have any alternative???

Notice:  This email message, together with any attachments, may contain information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.

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