by Christian Cantrell

 Comments (3)

Created

May 3, 2003

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

COMMENTS

  • By Peter Tilbrook - 6:00 AM on May 4, 2003   Reply

    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.

  • By Christian Cantrell - 4:44 PM on May 5, 2003   Reply

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

  • By Luke Bayes - 2:27 AM on August 21, 2004   Reply

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

ADD A COMMENT