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.
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.
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++.
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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With