The arcticle of codeproject is very clear about using CppUnit.
http://www.codeproject.com/library/Using_CPPUnit.asp
But I will speak about some important issues about the upon article:
1)If we use vs2005,RTTI setting is enalbed defaultly.We needn't to do it.
2)We can down load the source code from http://sourceforge.net/projects/cppunit
3)Compile the project in folder cppunit-1.10.2/src
4)When we compile the project successfully,we are only need of two folders named as"lib" and "include"
5)For our testing class,we need to add this line into .cpp file:
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(TestOpen,"freebird");
6)As well as,we need to add some codes into Instance member function of our application class
CppUnit::MfcUi::TestRunner runner;
runner.addTest(CppUnit::TestFactoryRegistry::getRegistry("freebird").makeTest());
runner.run();
分享到:
相关推荐
CPPUnit
CppUnit源码解读
cppUnit 单元测试 , VS2010 ~ VS 2015 都可以正常编译成功。这是新版。
CPPUNIT使用说明与环境配置 CPPUNIT使用说明与环境配置 CPPUNIT使用说明与环境配置 CPPUNIT使用说明与环境配置 CPPUNIT使用说明与环境配置
cppunit 例子 vc6.0
cppunit可用于单元测试
详细的CppUnit使用文档,适合使用cppunit做测试的测试人员
C++ cppunit单元测试示例代码,一个比较简单的工程,主要说明cppunit如何使用
从基本原理,CppUnit 原理,手动使用步骤,通常使用步骤,其他实际问题等方面进行讨论。以下讨论基于 CppUnit1.8.0。
什么方法可以让你确信自己的代码正在按照自己期望的方式...使用CppUnit编写的测试可以自动运行。测试可以容易地被构建起来,而且 一旦存在,这些测试将永远使你对你的代码质量保持信心。 详细介绍CppUnit 入门。实例!
这个改进后的使用方法是我为一个企业培训时所准备的,由于学员以...另外,为CppUnit添加了一些代码,用于解决桩代码与用例的匹配问题。这个资源包含CppUnit已编译后的库和源代码,示例工程、示例测试工程、使用说明。
CPPUNIT1.12 lib与头文件,编译好的,直接用
比较适合用vs2010的cppunit看下
CPPUNIT是基于 LGPL 的开源项目,最初版本移植自 JUNIT ,是一个非常优秀的开源测试框架。CPPUNIT和 JUNIT 一样主要思想来源于极限编程。主要功能就是
cppunit环境配置 cppunit环境配置 cppunit环境配置 cppunit环境配置 cppunit环境配置
CppUnit 英文文档说明 ——非常全的帮助文件
在VS2008中使用CppUnit,其中建立工程向导是引用别人的,库是自己编译的!
包含cppunit的源程序和两个简例的教程,新手可以用上哦。
cppunit在vs2008上不能直接编译过去,稍微修改了一下,把编译后的结果发上来热热场 下载数超过0就把修改的地方贴上来 预告: cppunit wizard for vs2008
他可以让你十分钟内搞懂cppunit,非常的有用,非常的有用,绝对物超所值