May be you could remove the fork in JUNIT and add forking in parallel task
But as you said repeating JUNIT task inside the parallel task doesn't look good

If we have a look at the JUNIT task attributes, i don't think there is
a option to do this.
Even I had this problem sometime back, then i left that idea after
seeing the ant options.

On 9/6/07, Dees, Ian (GE Healthcare) <[EMAIL PROTECTED]> wrote:
> Since the <junit> task is actually forking the JVMs, I don't think that
> putting the <junit> task in <parallel> will work. I'd have to put
> multiple <junit>'s inside the <parallel>. Is there a more elegant way to
> do this?
>
> I suppose I could extend the <junit> task's forkMode to add a parallel.
>
> -----Original Message-----
> From: Ramu Sethu [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 06, 2007 12:01 PM
> To: Ant Users List
> Subject: Re: Parallel Forked JUnit Runs?
>
> I have not tried but u can make use of container <parallel> task
>
> for more info
> Check this link
> http://ant.apache.org/manual/CoreTasks/parallel.html
>
> On 9/6/07, Dees, Ian (GE Healthcare) <[EMAIL PROTECTED]> wrote:
> > Hi list,
> >
> > We run our junit task with fork=perTest so that each test performs its
> > work in a separate JVM. Is there a way I can have Ant launch each of
> > those JVMs in a parallel fashion so that we can take advantage of the
> > several cores on our build server?
> >
> > Thanks!
> >
>
>
> --
> Thank you
> Ramu S
>
>   If A is success in life, then A equals x plus y plus z. Work is x; y
> is play; and z is keeping your mouth shut.
> - Albert Einstein
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thank you
Ramu S

  If A is success in life, then A equals x plus y plus z. Work is x; y
is play; and z is keeping your mouth shut.
- Albert Einstein

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to