您的位置:首页 > 移动开发 > Objective-C

Mock Objects in Unit Testing

2004-08-11 00:00 375 查看
在MSN上遇到了老哥(chen56)得知最近辞职在家开发了一个小工具,并放到了sf.net上

HiMock http://himock.sourceforge.net/

以前对TDD了解一些,实践过几次,感觉也很好;不过Mock Objects的概念今天还是第一次听到-_-!

搜索MO,发现在XP2000上就已经提出了这个概念:

Endo Testing: Unit Testing with Mock Objects

Unit testing is the testing of software units in isolation. However, most units do not work alone, but they collaborate with other units. To test a unit in isolation, we have to simulate the collaborators in the test.Mock Objects are test-oriented replacements for collaborators.

目前MO的项目还有 EasyMockJMock

挺感兴趣,最近打算研究一下;并答应老哥做这个开源项目的文档国际化的工作

一个很好的学习锻炼的机会
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: