« CSS vs Tables -- An Informal Poll | Main | Macromedia and Apple Team Up Over Studio MX »

May 03, 2003

Unit Testing ColdFusion Components

Unit testing is a great way to black-box test your components. By "black-box testing," I mean that you are only testing the results of function calls as opposed to white-box testing which actually exposes the inter-workings of components and functions.

Unit test is code written to test other code by simulating a real use case and comparing the results of function calls to expected results. These types of tests are most often done with languages that are object oriented, which means that unit testing code is appropriate for ColdFusion components. There is a unit testing framework on DRK 3 called cfunit (named after the very popular JUnit testing framework for Java). Read more about cfunit on Macromedia's website.

Raymond Camden came across cfunit last week. You can read his reaction here:

http://www.camdenfamily.com/morpheus/blog/index.cfm?mode=entry&entry=60

Posted by cantrell at May 3, 2003 06:22 PM | References

Comments

If Macromedia have fallen silent on deaf ears - please here our pleas. A product like Firefly deserves it's own "forum" in the MM forums so please make this happen before I ask for a refund.

Posted by: Peter Tilbrook at May 4, 2003 06:00 AM

There is a forum called "Flash Data Integration" within the Flash forum that is for the Firefly components.

Posted by: Christian Cantrell at May 5, 2003 04:44 PM

There is also an open source unit test framework for ActionScript 2.0 available at www.asunit.com...

Posted by: Luke Bayes at August 21, 2004 02:27 AM