Search code examples
coldfusioncfmlmxunit

ColdFusion unit test frameworks


As a related sub-question - are there any CF unit test frameworks that support or make it easier to use mocks/stubs?

The 2 that I spotted in a quick google that look the most promising are MXUnit and CFUnit. Are there others, and which one(s) have the widest adoption and active development? Enough questions crammed into one?

Basically I want to make a good choice.

edit Note that at the time of writing the question originally, MXUnit was the go-to and TestBox wouldn't be on github for a few years yet. See comments on the accepted answer.


Solution

  • TestBox is a new xUnit and BDD style framework that is compatible with MXUnit and comes with MockBox which is a full mocking and stubbing library. Both of these are actively developed and professionally supported by Ortus Solutions.

    https://testbox.ortusbooks.com/introduction/installing-testbox

    https://testbox.ortusbooks.com/mocking/mockbox/installing-mockbox