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.
Discussion
Share Your Thoughts
To display code in comments: <pre>Code here. May be multiline. Format XML with > and < entities.</pre>
Some HTML allowed in comments: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
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.