Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 751
jinglesthula Avatar asked Sep 30 '11 03:09

jinglesthula


People also ask

What are unit test frameworks?

What are unit test frameworks and how are they used? Simply stated, they are software tools to support writing and running unit tests, including a foundation on which to build tests and the functionality to execute the tests and report their results.

Which framework is used for unit testing of C++ programs?

Embunit: Embunit is an open source unit testing framework which is designed for software application written in C or C++. Embunit is designed as a unit testing tool for both developers and testers for software application written in C or C++.

Which is a third party unit test framework with a lighter weight syntax for writing test?

Kent Beck's original paper on testing frameworks using the pattern shared by unittest . Third-party unittest framework with a lighter-weight syntax for writing tests. For example, assert func(10) == 42 . An extensive list of Python testing tools including functional testing frameworks and mock object libraries.


2 Answers

Pretty sure that the only CF unit test framework still in active development is MXUnit.

Check out MockBox (also in active development) for support in using mocks/stubs.
http://wiki.coldbox.org/wiki/MockBox.cfm

Edit: Be sure to follow the MXUnit google group. http://groups.google.com/group/mxunit/topics

like image 133
charliegriefer Avatar answered Sep 27 '22 20:09

charliegriefer


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

like image 40
Brad Wood Avatar answered Sep 27 '22 20:09

Brad Wood