升压::测试和模拟框架 [英] Boost::test and mocking framework
问题描述
我使用boost ::测试需要使用模拟框架吧。有没有人有什么建议?
I am using boost::test and need to use a mocking framework with it. Does anyone have any recommendations?
推荐答案
我最近做单元测试和我的最新项目搜索嘲讽的框架,并与去的谷歌模拟。它有最好的文档和似乎相当好功能(虽然我还没有创建非常复杂的模拟对象还)。我最初是用的boost ::测试
的思考,但最终使用的谷歌测试的,而不是(我认为这是谷歌一个模拟prerequisite,即使您使用另一个测试框架)。它还具有良好的文档,并已大部分我所期望的功能。
I recently did a search for unit testing and mocking frameworks for my latest project and went with Google Mock. It had the best documentation and seems fairly well featured (although I haven't created very complex mock objects yet). I initially was thinking of using boost::test
but ended up using Google Test instead (I think it's a prerequisite for Google Mock, even if you use another testing framework). It also has good documentation and has had most of the features I expected.
这篇关于升压::测试和模拟框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!