Flash Unit Testing

Darron posted a great article today about unit testing with AS3 and Flex 2. He explains a full workflow for FlexUnit. You might also be interested in ASUnit, a unit testing framework for Actionscript 2.0. I want to start using unit tests myself, but I haven’t taken the time to commit to it. Darron’s post is a great introduction that gets me a step closer.

About Josh Tynjala

Josh Tynjala is a frontend developer, open source contributor, bowler hat enthusiast, and karaoke addict. You might be familiar with his project, Feathers UI, an open source user interface library for Starling Framework that is included in the Adobe Gaming SDK.

Discussion

  1. Luke Bayes

    Thanks for the kind mention Josh!

    I just wanted to note that AsUnit has been running with ActionScript 3.0 for a few months now, and our AS 3.0 build has some pretty great features like clean support for “ActionScript Projects” without enforcing the flex framework as a requirement.

  2. Josh Tynjala

    Thanks for the info, Luke. Always nice to have options.

    Speaking of options, I discovered that as2lib contains a unit testing framework. It takes a little effort to set up, but I tried it out at work today, and I like it a lot. It helped me find a couple of bugs I might not have noticed.