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.
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.
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.