|
Project Information
Featured
Downloads
Links
|
cpp-ut-project Introduction
User Guide
This is a C/C++ test sample project, using testngpp, mockcpp and premake. It aims at making C/C++ test harmless and full of fun. This project not only can generate project files, but also can create .h/.cpp/test files for class/feature, run "premake4 --usage addfile" to show more. Before you use this project, be sure about that you have compiled testngpp and mockcpp, and have put the installed files in tools, see also the structure of dir.
And then you can use this project following these steps. Windows1 Run cmd, change to the UserModule dir, run "premake4 vs2005". 2 Change to ../build/vs2005 dir, use the .sln/vcproj. Linux1 Install premake4. 2 Run cmd, change to the UserModule dir, run "premake4 gmake". 3 Change to ../build/gmake dir, run "make all". premake VS. cmake1 premake can add all the .cpp/.h to vcproj easily, it's very usefull for editing. 2 premake can be used on machines without compilers installed. (sometimes, cmake report unintelligible errors about compiler.) 3 premake use lua language to write the script. (lua is simple and powerfull.) 4 premake is much smaller. (one exe file around 200 bytes.) 5 premake also can be used on many platforms, such as linux/Mac OS etc., and it seems that premake support 64 bit platform much better. ContactAuthor : Chen Guodong<sinojelly@gmail.com> Project : http://code.google.com/p/cpp-ut-project/ See Alsotestngpp : http://code.google.com/p/test-ng-pp/ mockcpp : http://code.google.com/p/mockcpp/ premake : http://industriousone.com/premake Directory StructureThe directory structure of cpp-ut-project : ├─tools
│ ├─3rdparty
│ │ ├─boost
│ │ └─mem_checker
│ ├─mockcpp
│ │ ├─include
│ │ └─lib
│ ├─scripts
│ └─testngpp
│ ├─bin
│ ├─include
│ ├─lib
│ └─testngpp
│ ├─generator
│ └─listener
└─UserModule
├─include
│ └─UserModule
├─src
└─test
|