PDA

View Full Version : Unit testing tutorial?


pj-co
08-02-2008, 05:37 PM
Anyone here a big fan of unit testing with AS?

[edit]AS Unit DOES support AS3 .... [\edit] And more importantly I'm not sure where to get started. Anyone have opinions or favorite Unit tests or tutorials? any nudge in the right direction would be appreciated. :)

Edit:

So I slowly started to answer my own question and I am going to post here the resources I am reading and using to get started with Test Driven Development and Unit Testing. Opinions are very much encouraged on anything people have experienced in learning these things. I will try and keep the first post updated as I find stuff too.




Unit testing and Test Driven Development (TDD) for Flex and ActionScript 3.0
http://www.adobe.com/devnet/flex/articles/unit_testing.html

AS Unit
http://www.asunit.org/

assertTrue - blog for Luke Bayes and Ali Mills (creators of ASUnit)
http://www.asunit.org/

Step-By-Step Unit Testing with ASUnit Part One
By Tim Beynart (flashcodersny.org) AS 2.0 tutorial.
http://timbeynart.com/docs/ASUnit_Part1.pdf (pdf)
http://timbeynart.com/docs/ASUnit_Part2.pdf (pdf)


New ActionScript unit testing framework
Blog post about another open-source AS 3 unit testing framework called “dpunit”.
http://probertson.com/articles/2008/05/01/new-actionscript-unit-testing-framework/

asunit testing with flash cs3 and actionscript 3
Good AS 3 specific tutorial of the basics
http://marstonstudio.com/2007/07/28/asunit-testing-with-flash-cs3-and-actionscript-3/

pj-co
08-03-2008, 10:08 AM
http://www.actionscript.org/forums/showthread.php3?t=149126

found this, some info there and a bit more need sleep though, will post tomorrw ;)

pj-co
08-05-2008, 02:07 AM
Going to keep bumping my thread as I find more tutorials, as I am slowly answering my own question :) Also, I figure it cant hurt to have a list of good Unit testing tutorials here. Mayhaps I'll edit the first post with what I find and hope for sticky :)

Unit testing and Test Driven Development (TDD) for Flex and ActionScript 3.0
http://www.adobe.com/devnet/flex/articles/unit_testing.html