<?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: Automated testing with FlexUnit (a proposal)</title>
	<atom:link href="http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/</link>
	<description></description>
	<lastBuildDate>Tue, 20 Jul 2010 14:27:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: darryl west</title>
		<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/comment-page-1/#comment-4576</link>
		<dc:creator>darryl west</dc:creator>
		<pubDate>Thu, 14 Jun 2007 15:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/#comment-4576</guid>
		<description>&lt;p&gt;yes, after re thinking through the issues, apollo/AIR seems like the likely runner.   my bad.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>yes, after re thinking through the issues, apollo/AIR seems like the likely runner.   my bad.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Theo</title>
		<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/comment-page-1/#comment-4518</link>
		<dc:creator>Theo</dc:creator>
		<pubDate>Fri, 08 Jun 2007 07:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/#comment-4518</guid>
		<description>&lt;p&gt;Darryl: If you can show me how to run ActionScript code in Java you have a point, but since FlashPlayer is the only thing that runs ActionScript code your comment is meaningless. Yes there are better ways of doing what I want to do, but there are not better ways of doing it with the tools available.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Darryl: If you can show me how to run ActionScript code in Java you have a point, but since FlashPlayer is the only thing that runs ActionScript code your comment is meaningless. Yes there are better ways of doing what I want to do, but there are not better ways of doing it with the tools available.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: darryl west</title>
		<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/comment-page-1/#comment-4506</link>
		<dc:creator>darryl west</dc:creator>
		<pubDate>Thu, 07 Jun 2007 13:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/#comment-4506</guid>
		<description>&lt;p&gt;Apollo might give you some client capabilities, but FlexBuilder is written in java.  ant is written in java.  Using java, you can create an eclipse (FlexBuilder) plugin that would give you what you need.&lt;/p&gt;

&lt;p&gt;Also, a superior model for industrial strength test frameworks comes from the ruby/rails world.  whenever you create a new class, the platform creates (code generates) unit and functional tests, test fixtures to create test data, and connections to the test database.&lt;/p&gt;

&lt;p&gt;with test data in place, unit testing is just that--no dependency on the backend server.  and functional testing that makes round trips to the server, use data in a specially configured test database instance.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Apollo might give you some client capabilities, but FlexBuilder is written in java.  ant is written in java.  Using java, you can create an eclipse (FlexBuilder) plugin that would give you what you need.</p>

<p>Also, a superior model for industrial strength test frameworks comes from the ruby/rails world.  whenever you create a new class, the platform creates (code generates) unit and functional tests, test fixtures to create test data, and connections to the test database.</p>

<p>with test data in place, unit testing is just that&#8211;no dependency on the backend server.  and functional testing that makes round trips to the server, use data in a specially configured test database instance.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Theo</title>
		<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/comment-page-1/#comment-3867</link>
		<dc:creator>Theo</dc:creator>
		<pubDate>Fri, 27 Apr 2007 09:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/#comment-3867</guid>
		<description>&lt;p&gt;Seems like a good solution.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Seems like a good solution.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: darron</title>
		<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/comment-page-1/#comment-3861</link>
		<dc:creator>darron</dc:creator>
		<pubDate>Thu, 26 Apr 2007 19:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/#comment-3861</guid>
		<description>&lt;p&gt;I&#039;m currently using a solution that combines the Stand Alone flash debug player, a python script, and ANT.&lt;/p&gt;

&lt;p&gt;I launch the debug player via ANT, which writes the output of units tests to the flashlog.txt file.  The python script picks that apart and creates an .xml file that can be imported via CruiseControl.  ANT picks up a success/failure flag from the python script, and the ANT build fails if the python script reports that the test failed.  Otherwise, the build succeeds, and CruiseControl incorporates the test results on the build result page.&lt;/p&gt;

&lt;p&gt;It&#039;s got a few moving parts, but I like it better than the socket server solution.  If you&#039;re looking to implement something yourself, have a look at Paul&#039;s CI category: http://www.eyefodder.com/blog/continuous_integration/&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m currently using a solution that combines the Stand Alone flash debug player, a python script, and ANT.</p>

<p>I launch the debug player via ANT, which writes the output of units tests to the flashlog.txt file.  The python script picks that apart and creates an .xml file that can be imported via CruiseControl.  ANT picks up a success/failure flag from the python script, and the ANT build fails if the python script reports that the test failed.  Otherwise, the build succeeds, and CruiseControl incorporates the test results on the build result page.</p>

<p>It&#8217;s got a few moving parts, but I like it better than the socket server solution.  If you&#8217;re looking to implement something yourself, have a look at Paul&#8217;s CI category: <a href="http://www.eyefodder.com/blog/continuous_integration/" rel="nofollow">http://www.eyefodder.com/blog/continuous_integration/</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Theo</title>
		<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/comment-page-1/#comment-3462</link>
		<dc:creator>Theo</dc:creator>
		<pubDate>Wed, 04 Apr 2007 08:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/#comment-3462</guid>
		<description>&lt;p&gt;Sounds like a good idea. Do we know that Apollo will have exec capabilities? I would really like to see that, together with printing to stdout and exiting with a status other than zero it would make Apollo applications just like any other. The alpha is alpha an a bit crippled in that department. (On the other hand, if this is the alpha, I can&#039;t wait for the final.)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sounds like a good idea. Do we know that Apollo will have exec capabilities? I would really like to see that, together with printing to stdout and exiting with a status other than zero it would make Apollo applications just like any other. The alpha is alpha an a bit crippled in that department. (On the other hand, if this is the alpha, I can&#8217;t wait for the final.)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: zwetan</title>
		<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/comment-page-1/#comment-3461</link>
		<dc:creator>zwetan</dc:creator>
		<pubDate>Tue, 03 Apr 2007 23:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/#comment-3461</guid>
		<description>&lt;p&gt;I thought of another way (without Ant)&lt;/p&gt;

&lt;p&gt;make an ApolloTestRunner that can:
- scan a path to collect *.as class
- compile those class using mxmlc
- dynamically load this external file into
  the TestRunner&lt;/p&gt;

&lt;p&gt;if you look at how to run Java unit tests without Ant,
you don&#039;t need anything else than Java itself, for AS3 it should be the same imho.&lt;/p&gt;

&lt;p&gt;When this is implemented, then you can hook Ant or any other process.&lt;/p&gt;

&lt;h2&gt;take a simple use case:&lt;/h2&gt;

&lt;p&gt;&quot;I&#039;m a user, I want to run tests while writing my code&quot;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;any IDE than can run an external executable tool&lt;/li&gt;
&lt;li&gt;being able to pass as an argument to that exe the current class we want to test&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;then the classic
- write tests
- run (it fails)
- write code and test till it does not fail&lt;/p&gt;

&lt;h2&gt;..repeat&lt;/h2&gt;

&lt;p&gt;just a basic stdOut back to the IDE should be enought to provide feedback.&lt;/p&gt;

&lt;p&gt;Now, to make it automated in Ant, the perspective change, we already have an exe that take care of compiling the class and run the test on the class.&lt;/p&gt;

&lt;p&gt;then taking this way, have the ApolloTestRunner exe
feedback to Ant the JUnit XML report and use the JUnit task.&lt;/p&gt;

&lt;p&gt;I plan to take this way with ASTUce, but I&#039;m waiting an Apollo beta than can run exe :).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I thought of another way (without Ant)</p>

<p>make an ApolloTestRunner that can:
- scan a path to collect *.as class
- compile those class using mxmlc
- dynamically load this external file into
  the TestRunner</p>

<p>if you look at how to run Java unit tests without Ant,
you don&#8217;t need anything else than Java itself, for AS3 it should be the same imho.</p>

<p>When this is implemented, then you can hook Ant or any other process.</p>

<h2>take a simple use case:</h2>

<p>&#8220;I&#8217;m a user, I want to run tests while writing my code&#8221;</p>

<ul>
<li>any IDE than can run an external executable tool</li>
<li>being able to pass as an argument to that exe the current class we want to test</li>
</ul>

<p>then the classic
- write tests
- run (it fails)
- write code and test till it does not fail</p>

<h2>..repeat</h2>

<p>just a basic stdOut back to the IDE should be enought to provide feedback.</p>

<p>Now, to make it automated in Ant, the perspective change, we already have an exe that take care of compiling the class and run the test on the class.</p>

<p>then taking this way, have the ApolloTestRunner exe
feedback to Ant the JUnit XML report and use the JUnit task.</p>

<p>I plan to take this way with ASTUce, but I&#8217;m waiting an Apollo beta than can run exe :).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Theo</title>
		<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/comment-page-1/#comment-3458</link>
		<dc:creator>Theo</dc:creator>
		<pubDate>Tue, 03 Apr 2007 17:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/#comment-3458</guid>
		<description>&lt;p&gt;Well, &quot;fail on error&quot; is not the problem with Peter&#039;s solution. It requires a custom Ant task that starts a socket server and that the application is started in a browser or Flash player. This works, but it seems more straightforward to exec and wait for the results and to be able to do this with only core Ant tasks.&lt;/p&gt;

&lt;p&gt;Perhaps some of Peter&#039;s code could be used for these purposes too, but the problems it solves are the ones I want to do away with =)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Well, &#8220;fail on error&#8221; is not the problem with Peter&#8217;s solution. It requires a custom Ant task that starts a socket server and that the application is started in a browser or Flash player. This works, but it seems more straightforward to exec and wait for the results and to be able to do this with only core Ant tasks.</p>

<p>Perhaps some of Peter&#8217;s code could be used for these purposes too, but the problems it solves are the ones I want to do away with =)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Robbins</title>
		<link>http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/comment-page-1/#comment-3457</link>
		<dc:creator>Sam Robbins</dc:creator>
		<pubDate>Tue, 03 Apr 2007 15:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.iconara.net/2007/04/03/flexunit-automation-proposal/#comment-3457</guid>
		<description>&lt;p&gt;The source for Peter&#039;s solution is on his site why not just modify that to fit your needs? With some simple changes you could &quot;fail on error much like it’s possible to do with JUnit and unit testing in Xcode.&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The source for Peter&#8217;s solution is on his site why not just modify that to fit your needs? With some simple changes you could &#8220;fail on error much like it’s possible to do with JUnit and unit testing in Xcode.&#8221;</p>]]></content:encoded>
	</item>
</channel>
</rss>
