<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: ASUnit Gotcha &#8211; Empty TestSuite Bug</title>
	<atom:link href="http://alecmce.com/as3/asunit-gotcha-empty-testsuite-bug/feed" rel="self" type="application/rss+xml" />
	<link>http://alecmce.com/as3/asunit-gotcha-empty-testsuite-bug</link>
	<description>Coding on the Flash Platform</description>
	<lastBuildDate>Thu, 11 Mar 2010 04:57:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: alec</title>
		<link>http://alecmce.com/as3/asunit-gotcha-empty-testsuite-bug/comment-page-1#comment-7</link>
		<dc:creator>alec</dc:creator>
		<pubDate>Wed, 05 Aug 2009 13:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://alecmce.com/?p=160#comment-7</guid>
		<description>Thanks Simone, nice solution, I thought I&#039;d tried that but clearly not...</description>
		<content:encoded><![CDATA[<p>Thanks Simone, nice solution, I thought I&#8217;d tried that but clearly not&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simone</title>
		<link>http://alecmce.com/as3/asunit-gotcha-empty-testsuite-bug/comment-page-1#comment-6</link>
		<dc:creator>simone</dc:creator>
		<pubDate>Wed, 05 Aug 2009 13:08:57 +0000</pubDate>
		<guid isPermaLink="false">http://alecmce.com/?p=160#comment-6</guid>
		<description>another fix could be to check the number of tests in the testSuite and if it&#039;s 0 just send a COMPLETE event.

so in the run method of the TestSuite  add the following lines just before the &quot;while(itr.hasNext())&quot;

if (testCount() == 0)
{
    dispatchEvent(new Event(Event.COMPLETE));
    return;
}

if you run an empty TestSuite with this fix you&#039;ll get:
OK (0 tests)</description>
		<content:encoded><![CDATA[<p>another fix could be to check the number of tests in the testSuite and if it&#8217;s 0 just send a COMPLETE event.</p>
<p>so in the run method of the TestSuite  add the following lines just before the &#8220;while(itr.hasNext())&#8221;</p>
<p>if (testCount() == 0)<br />
{<br />
    dispatchEvent(new Event(Event.COMPLETE));<br />
    return;<br />
}</p>
<p>if you run an empty TestSuite with this fix you&#8217;ll get:<br />
OK (0 tests)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Penner</title>
		<link>http://alecmce.com/as3/asunit-gotcha-empty-testsuite-bug/comment-page-1#comment-5</link>
		<dc:creator>Robert Penner</dc:creator>
		<pubDate>Wed, 05 Aug 2009 04:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://alecmce.com/?p=160#comment-5</guid>
		<description>I ran into this bug recently as well. Thanks for the fix!</description>
		<content:encoded><![CDATA[<p>I ran into this bug recently as well. Thanks for the fix!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Bayes</title>
		<link>http://alecmce.com/as3/asunit-gotcha-empty-testsuite-bug/comment-page-1#comment-4</link>
		<dc:creator>Luke Bayes</dc:creator>
		<pubDate>Wed, 05 Aug 2009 03:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://alecmce.com/?p=160#comment-4</guid>
		<description>Hey Alex,

Thanks so much for bringing this up and even more for submitting the patch!

Your fix has been pulled into trunk and released at http://asunit.org</description>
		<content:encoded><![CDATA[<p>Hey Alex,</p>
<p>Thanks so much for bringing this up and even more for submitting the patch!</p>
<p>Your fix has been pulled into trunk and released at <a href="http://asunit.org" rel="nofollow">http://asunit.org</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
