For the last year and a half, I’ve been concentrating on learning, implementing and improving my development processes and practices. Learning as much as I can about patterns, object oriented design, UML, refactoring, on and on. The one subject I kept procrastinating on was unit testing. Test driven development is such a completely different way of programming, and I was always in the middle of so many things with so many deadlines, there was never the opportunity to just drop everything and implement a whole new methodology in development.
But, a few weeks ago, I did decide to dive into it, installed AsUnit (for the fourth or fifth time), and picked up a copy of Test Driven Development: By Example by Kent Beck.
I’ve been working my way through the book, and applying what I’ve learned to examples, and finally started building a real app that I want to build, using TDD. It’s slowly starting to sink in. The book is great. And like other Java-based books, cross-applying the example code to AS 2 is a breeze.
One thing I found is that while there is a fair amount of data available on JUnit and unit testing in general, there is virtually nothing out there for the average Flash developer who wants to start using unit testing. Even AsUnit, while a great project, has about a page and a half of documentation total. It’s called the “Quickstart Guide”, which led me on a fruitless search for the “Full Guide”.
As I’m spending quite a bit of time on unit testing with AsUnit right now, and learning lots of little tricks and techniques, I’m going to start posting some stuff here, to hopefully help others along who might be having similar problems getting started. Stay tuned…
Cool. Test driven development is a powerful way of programming.
I’ll look forward your posts about the subject.
Rock on. For the last year, I have been working pretty much along the same lines..it would be good to get a fresh perspective
great effort!
How about as2unit from iteration:two ?
great effort!
How about as2unit from iteration:two ?
Sounds great – I will follow your experiences. I have wanted to get into unit testing for some time now, but haven’t managed to make it routine yet.
Hi,
It’s a great idea.
You could have an insight here :
http://www.oreilly.com/catalog/jextprockbk/chapter/ch04.pdf
I use AsUnit also and had published some articles (french) on my blog some months ago. It’s pratical advices coming from discussions with AsUnit developpers.
That should help.
Hi,
It’s a great idea.
You could have an insight here :
http://www.oreilly.com/catalog/jextprockbk/chapter/ch04.pdf
I use AsUnit also and had published some articles (french) on my blog some months ago. It’s pratical advices coming from discussions with AsUnit developpers.
That should help.
Interesting, I’ll keep my eye on it. I’m guessing TTD really applies if you’re working in a team?
Hey Thanks for the mention!
We keep meaning to write an article – and even more importantly, a “Full Guide”, but like everyone else, Ali and I find many things competing for our time!
I just wanted to mention that AsUnit is an open source community project, and is built from the ongoing (and fairly extensive) efforts of just a small handful of individuals. One really great way that anyone could contribute would be to help us by writing that more robust instructional material!
😉
Thanks,
Luke Bayes
http://www.asunit.com
testcomment18