c++ - C++中的单元测试

标签 c++ unit-testing

<分区>

Possible Duplicates:
C++ testing framework: recommendation sought
C++ unit testing framework

你好,

你推荐哪种 c++ 单元测试框架?

谢谢

最佳答案

过去我使用的是 CppUnit(http://sourceforge.net/apps/mediawiki/cppunit/index.php?title=Main_Page),但现在我更喜欢 Boost 测试库(http://www.boost.org/doc/libs/1_46_0/libs/test/doc/html/index.html)。

最近我也在我的非 Qt 项目中使用 QTest(Qt 框架的一部分)(http://qt.nokia.com/products/)

关于c++ - C++中的单元测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5160461/

相关文章:

c++ - 如何在 C++ 中创建重复直到循环?

c++ - 字符串的运算符重载

java - 为什么 JUnit 从 Eclipse 启动需要这么长时间?

javascript - 如何将另一个文件中的实用程序函数包含到 Sproutcore 单元测试文件中?

python - 工厂男孩 - 如何创建工厂所需的数据(预生成 Hook )

javascript - 引用错误: d3 is not defined in jest Unit Test

c++ - Xcode 5 上的 Cocos2d-x 设置

c++ - 使用 PUGIXML 反复保存大型 XML 文件需要花费大量时间

c++ - 什么是复制省略和返回值优化?

java - 如何创建自定义 JUnit5 扩展