单元测试框架 [英] Unit test frameworks

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

问题描述

在这些单元测试框架中:

Boost测试,Google测试,CppUnit,哪个最容易使用?

Out of these unit test frameworks:
Boost Test, Google Test, CppUnit, which is the easiest to use?

推荐答案

在Google和CppUnit之间,我更喜欢CppUnit,它最容易配置,对代码库的干扰最小(我使用它)。从我看来,谷歌似乎有最好的文件3.



[我还没有用过Boost测试。]
Between Google and CppUnit, my preference is for CppUnit, which is easiest to configure and least intrusive to the code base (and I use it). From what I see, Google seems to have the best documentation of the 3.

[I haven''t used Boost Test.]

您最好选择编写代码的框架。



我更喜欢提升,因为它是一个备受推崇的图书馆。
You better choose the framwork in which you are writing your code.

I would prefer boost because it is a well admired library.


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

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