Unit Testing Frameworks for Visual Studio 2012 Cons/Pros

别等时光非礼了梦想. 提交于 2019-12-23 19:09:54

问题


I want to get started on Unit Testing in C++ (pure C++, not .NET), since I have never done it before. Always used assert and cout. So far, the only good Question with detailed answers, I have found is https://stackoverflow.com/questions/13699/choosing-a-c-unit-testing-tool-framework, but it is dated to 2008.

I would like to hear some opinions about currently available C++ Unit Testing compatible with Visual Studio 2012. What are their Cons and Pros ? How easy/hard to learn them(i.e availability of learning materials) ? How Popular they are ? Are they being actively developed, supported ?

There are several frameworks that I am aware of: Google's Testing Framework, Boost Testing Lib.

(Also, in addition to Visual Studio, I use Intel Parallel Studio XE 2013, primarily for static analysis)


回答1:


At the moment we only use the unit testing functionality which comes with VS12 (Premium). We also tested other Frameworks (e.g. NUnit), but for now VS12 testing suits well.




回答2:


I use TUT unit testing framework: http://tut-framework.sourceforge.net/



来源:https://stackoverflow.com/questions/18341809/unit-testing-frameworks-for-visual-studio-2012-cons-pros

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!