knowledge.lapasa.net

Greater Toronto Area Flash Platform Developer Blog

The Comfort of Unit Tests

TAGS: None

I love hearing about stories about code that embraces change rather than fight it. Steve Rowe shares his experience with Test Driven Development.

At first it felt painful. You can’t code as fast. It sucks having to stop and write tests. Then I started making changes to the design. This is when it pays to have unit tests.

One of my partners in this project has written some code that I will end up helping out with. He has no tests for his area. It’s a lot scarier going in there to make changes.

Link is here.

Using org.as2lib.test.unit API

TAGS: None

Unit testing
Nicholas Lesiecki: A good automated test suite for an application should look like the diagram

Lately, I’ve been using iteration::two’s AS2Unit for my Unit Testing needs and I think it’s been great. It’s a good starting to point to get into the world of Test Driven Development (TDD). I was gonna print out handy list of test functions for my quick reference when I thought that there isn’t that many tests for AS2Unit. I was wondering if there were other unit testing frame works out there. Funny thing is that it’s been sitting on my computer the whole time when I downloaded the well known Open Source ActionScript 2.0 Library a.ka. as2lib.

There is a package called org.as2lib.test.unit. I was lazy too lazy to read up on every file in the package as there are many. So a little googling lead me to Simon Wacker’s page all the way in Germany. He provides a nice gentle introduction that’s very much like the Flash Magazine article on AS2 Unit. Good read.

© 2009 knowledge.lapasa.net. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.