ColdFusion 单元测试框架
作为一个相关的子问题 - 是否有任何 CF 单元测试框架支持或使其更容易使用模拟/存根?
我在快速谷歌中发现最有前途的两个是 MXUnit 和 CFUnit。还有其他的吗?哪一个(哪些)拥有最广泛的采用和积极的开发?问题已经够多了吗?
基本上我想做出一个好的选择。
编辑 请注意,在最初编写问题时,MXUnit 是首选,而 TestBox 几年后才出现在 github 上。请参阅对已接受答案的评论。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
可以肯定的是,唯一仍在积极开发中的 CF 单元测试框架是 MXUnit。
查看 MockBox(也在积极开发中)以获取使用模拟/存根的支持。
http://wiki.coldbox.org/wiki/MockBox.cfm
编辑:请务必关注 MXUnit 谷歌小组。 http://groups.google.com/group/mxunit/topics
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 是一个新的 xUnit 和 BDD 风格框架,与 MXUnit 兼容,并附带 MockBox,这是一个完整的模拟和存根库。这两者均由 Ortus Solutions 积极开发并提供专业支持。
https://testbox.ortusbooks.com/introduction/installing-testbox
https://testbox.ortusbooks.com/mocking/mockbox/installing-mockbox
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
不要忘记http://github.com/bobsilverberg/CFSelenium
Don't forget http://github.com/bobsilverberg/CFSelenium