MXUnit 1.0 Available
July 15, 2008 · 3 Comments
I'm a bit late with this (I went to Vegas for a friend's 25th wedding anniversary party - an off-topic blog post on that later). MXUnit, currently the best unit testing framework for ColdFusion, just hit the big 1.0 release milestone.
As folks know, I've been a big fan of unit testing for quite a while and used to advocate Paul Kenney's cfcUnit at every opportunity. Unfortunately, Paul hasn't been working on cfcUnit much for the last few years and MXUnit has grown up to take the crown of the most comprehensive, most robust, most feature-rich testing framework for ColdFusion.
If you're still not doing unit testing, you need to check out the MXUnit website and try to get to at least one of the presentations that the MXUnit team are giving. They're on the Online ColdFusion Meetup on Thursday July 17th (database patterns for unit testing - Bill Shelton) and if you're at MAX 2008, you can catch Marc Esher talk about advanced patterns for ColdFusion test automation which should be excellent (Wednesday, November 19th @ 9:30am).
Tags: adobemax08 · coldfusion · tdd

3 responses so far ↓
1 Sami Hoda // Jul 15, 2008 at 10:15 AM
Brian's preso (references on my blog) also shows off MXUnit along with his tools. Worth checking out.
2 Joel Cox // Jul 15, 2008 at 10:19 AM
Most of the examples I've seen demo pretty simple functions (add 2 numbers, etc) that no one would actually write.
How do you test a query function, though, except for the case of a database exception? It is perfectly acceptable for a query to return 0 rows, and it could be acceptable (though possily undesirable) for a query to return 10,000 rows. There's no simple assertion that I can envision to indicate whether a function passed or failed, as the results are strongly dependent on input parameters, and may well change over time.
3 Sean Corfield // Jul 15, 2008 at 11:22 AM
Leave a Comment