You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Philip Aston <pa...@bea.com> on 2003/09/28 16:49:25 UTC

[PATCH] JUnit task - forking only once for a batch

 > -----Original Message-----
 > From: Philip Aston 
 > Sent: 25 September 2003 22:50
 > To: dev@ant.apache.org
 > Subject: RE: JUnit task - forking only once for a batch
 > 
 >  > -----Original Message-----
 >  > From: Stefan Bodewig [mailto:bodewig@apache.org]
 >  > Sent: 25 September 2003 09:38
 >  > To: dev@ant.apache.org
 >  > Subject: Re: JUnit task - forking only once for a batch
 >  > 
 >  > On Tue, 23 Sep 2003, Philip Aston <pa...@bea.com> wrote:
 >  > > and would they like <batchtest fork="single"/>
 >  > 
 >  > I'd like to see it, at least.
 >  > 
 >
 > OK, I'll cut a patch at the weekend.

Patch and new file attached for consideration. Example usage:

    <junit fork="true">
      <batchtest singleProcess="false">
        <formatter type="plain" usefile="false"/>

          <fileset dir="${test-src.dir}">
	      <include name="**/*Tests.java"/>
          </fileset>
      </batchtest>
    </junit>


If its OK, I'm more than happy to update the docs.

Regards,

- Phil



Re: [PATCH] JUnit task - forking only once for a batch

Posted by Jim Dixon <jd...@dixons.org>.
On Sun, 28 Sep 2003, Philip Aston wrote:

>  >  > On Tue, 23 Sep 2003, Philip Aston <pa...@bea.com> wrote:
>  >  > > and would they like <batchtest fork="single"/>
>  >  >
>  >  > I'd like to see it, at least.
>  >  >
>  >
>  > OK, I'll cut a patch at the weekend.
>
> Patch and new file attached for consideration. Example usage:
>
>     <junit fork="true">
>       <batchtest singleProcess="false">
>         <formatter type="plain" usefile="false"/>
>
>           <fileset dir="${test-src.dir}">
> 	      <include name="**/*Tests.java"/>
>           </fileset>
>       </batchtest>
>     </junit>
>
>
> If its OK, I'm more than happy to update the docs.

Second request: how does this differ from fork="false"?

Are you passing a list of tests to the test runner or what?

--
Jim Dixon  jdd@dixons.org   tel +44 117 982 0786  mobile +44 797 373 7881


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