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/23 20:47:32 UTC
JUnit task - forking only once for a batch
[Initially sent to user@ant.apache.org, resent to a more appropriate
place].
Hi,
I finally got fed up with the cost of forking a new process for every test
(~1 second in my environment). I've hacked <junit/> to support a new type
of <batchtest/> where where all of the tests are executed in a single
sub-process. *Much* faster.
I'm quite willing to clean this up and submit it as a patch; but first
I have some questions:
1. Is there planned support for this already?
2. If not, who maintains the JUnit task, and would they like
<batchtest fork="single"/>
3. If they would, which version of ANT should I base the patch on?
Regards,
- Phil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: JUnit task - forking only once for a batch
Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 23 Sep 2003, Philip Aston <pa...@bea.com> wrote:
> 1. Is there planned support for this already?
Not exactly for forking each <batchtest>. What has been asked for
(but never implemented) is forking exactly one VM for all tests.
> 2. If not, who maintains the JUnit task,
All Ant committers.
> and would they like <batchtest fork="single"/>
I'd like to see it, at least.
> 3. If they would, which version of ANT should I base the
> patch on?
CVS HEAD - i.e. the latest snapshot you can get if you don't want to
fiddle with CVS yourself.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: JUnit task - forking only once for a batch
Posted by Jim Dixon <jd...@dixons.org>.
On Tue, 23 Sep 2003, Philip Aston wrote:
> I finally got fed up with the cost of forking a new process for every test
> (~1 second in my environment). I've hacked <junit/> to support a new type
> of <batchtest/> where where all of the tests are executed in a single
> sub-process. *Much* faster.
>
> I'm quite willing to clean this up and submit it as a patch; but first
> I have some questions:
>
> 1. Is there planned support for this already?
>
> 2. If not, who maintains the JUnit task, and would they like
> <batchtest fork="single"/>
>
> 3. If they would, which version of ANT should I base the patch on?
How is this different from just specifying fork="no"?
If you have more than one batchtest, does each set get forked
separately?
--
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