<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Lylo Files &#187; ant</title>
	<atom:link href="http://blog.lylo.co.uk/category/ant/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lylo.co.uk</link>
	<description>Not very much at all, really</description>
	<lastBuildDate>Mon, 15 Mar 2010 22:56:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Optimising JUnit performance in Ant</title>
		<link>http://blog.lylo.co.uk/2006/06/20/optimising-junit-performance-in-ant/</link>
		<comments>http://blog.lylo.co.uk/2006/06/20/optimising-junit-performance-in-ant/#comments</comments>
		<pubDate>Tue, 20 Jun 2006 08:46:32 +0000</pubDate>
		<dc:creator>Olly</dc:creator>
				<category><![CDATA[ant]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.lylo.co.uk/blog/2006/06/20/optimising-junit-performance-in-ant/</guid>
		<description><![CDATA[Ever been in the situation where your unit tests are running really slowly with Ant from the command line but run like lightening in your IDE?  Usually tests which are persisting to a database?
I&#8217;ve recently had this problem and I managed to solve it by not forking the batchtest task, and instead forking the [...]]]></description>
			<content:encoded><![CDATA[<p>Ever been in the situation where your unit tests are running <em>really</em> slowly with <a href="http://ant.apache.org" title="Apache Ant">Ant</a> from the command line but run like lightening in your IDE?  Usually tests which are persisting to a database?</p>
<p>I&#8217;ve recently had this problem and I managed to solve it by <strong>not</strong> forking the <tt>batchtest</tt> task, and instead forking the <tt>junit</tt> target and setting the <tt>forkmode</tt> attribute to <tt>once</tt>, like so:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;junit</span> <span style="color: #000066;">printsummary</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">fork</span>=<span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000066;">forkmode</span>=<span style="color: #ff0000;">&quot;once&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;batchtest</span> <span style="color: #000066;">todir</span>=<span style="color: #ff0000;">&quot;${tmp}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/batchtest<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/junit<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.lylo.co.uk/2006/06/20/optimising-junit-performance-in-ant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
