且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在大型C ++项目中实现单元测试?

更新时间:2023-09-24 23:43:16

有很多测试单元框架C ++。
CppUnit肯定不是我选择的(至少在稳定版本1.x中,因为它缺少许多测试,并且需要大量的冗余代码行)。
到目前为止,我的首选框架是 CxxTest ,我计划评估结束有一天。

There are many Test Unit frameforks for C++. CppUnit is certainly not the one I would choose (at least in its stable version 1.x, as it lacks many tests, and requires a lot of redundant lines of codes). So far, my preferred framework is CxxTest, and I plan on evaluating Fructose some day.

无论如何,有几个论文评估C ++ TU框架:

Any way, there are a few "papers" that evaluate C++ TU frameworks :

  • Exploring the C++ Unit Testing Framework Jungle, By Noel Llopis
  • an article in Overload Journal #78