Visual Studio 2012的单元测试框架缺点/优点 [英] Unit Testing Frameworks for Visual Studio 2012 Cons/Pros

查看:355
本文介绍了Visual Studio 2012的单元测试框架缺点/优点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始单元测试在C + +(纯C + +,而不是.NET),因为我从来没有做过。始终使用 assert cout
到目前为止,唯一有问题的详细答案,我发现是选择一个C ++单元测试工具/框架,但它的日期为2008年。

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 Choosing a C++ unit testing tool/framework, but it is dated to 2008.

我想听听一些关于当前可用的C ++单元测试兼容Visual Studio 2012.他们的缺点和优点是什么?如何容易/难以学习它们(即学习材料的可用性)?他们是多么热?是否正在积极开发,支持?

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 ?

我知道有几个框架:Google的测试框架,Boost测试库。

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

(此外,除了Visual Studio,我使用英特尔Parallel Studio XE 2013,主要用于静态分析)

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

推荐答案

目前我们只使用VS12(Premium)附带的单元测试功能。我们还测试了其他框架(如NUnit),但现在VS12测试适合。

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.

这篇关于Visual Studio 2012的单元测试框架缺点/优点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆