Using CppUnit

长平狐 发布于 2012/08/28 16:37
阅读 192
收藏 0

The arcticle of codeproject is very clear about using CppUnit.

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
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:

6)As well as,we need to add some codes into Instance member function of our application class
    CppUnit::MfcUi::TestRunner runner;