Testing frameworks – cfunit, cfcunit and mxunit

Hi folks,

There are lots of testing frameworks available for Test-driven development (TDD). Most of them are of xUnit family. Recently I had gone through three most popular testing frameworks for ColdFusion.




After using all three, I decided to post a comparison of them. Information may be inaccurate, Corrections are always acceptable.


Features CFUnit CFCUnit MXUnit
Based on XUnit & JUnit Yes Yes Yes
Eclipse Plug-in Removed in final cfeclipse release No Yes
Eclipse Ant integration using jar Yes Yes Yes
Supported Output format HTML HTML, XML HTML,XML,JUnit Report XML, CF query, CF Array
HTML UI No Yes Yes
Easy to see your data with cfoutput, cfdump, and debug(), also cfcatch to view data No No Yes
Directory runner No No Yes
Testing private methods Yes Yes
TestCase component net.sourceforge.cfunit.framework.TestCase org.cfcunit.framework.TestCase mxunit.framework.TestCase
Support for setUp() and tearDown() functions Yes Yes Yes
beforeTests() and afterTests() functions No No Yes
Help and tutorials availability Few Few Enough
Assertion Only Standard Assertions More than 30 Built-in assertion There are around 10 built-in assertions

I personally like MXUnit for its eclipse Plug-in and better UI.

how can we help you?

Contact us at the Consulting WP office nearest to you or submit a business inquiry online.

Looking for a First-Class Business Plan Consultant?