This is a very old thread, but in case other developers are trying to use cxxtest, I managed to get it working using this setup:
1. Create two projects - a static library project called mylib, and a console project called mylib_test
2. Make mylib_test depend on mylib via Project > Properties > Project dependencies...
3. Put my tests into the mylib_test project's include folder. eg Test_smart_ptr.hpp
4. In mylib_test, go to Project > Build options... > Pre/post build steps and add a line to Pre-build steps:
cxxtestgen.pl --gui=QtGui -o $(PROJECT_DIR)src/runner.cpp $(PROJECT_DIR)include/*.hpp
Of course, you can configure this last cxxtestgen.pl line to output just text, if you prefer.
Under this setup, the build will fail (with red in the GUI) upon failure of any unit tests.
I usually have mylib_test selected on Release and hit <F9>, change/add code, hit <F9>, etc...
In other IDEs/unit-tests, I tend to create a tests folder within the same project, but for this cxxtest/C::B combo, a separate project seems to be easier to set up.
Hope someone finds this useful.
Check out C/C++ Users Journal : Edition December 2005
"Unit Testing & CxxTest"
So it's CxxTest and not cppTest, my mistake.
Comparison article :
http://www.gamesfromwithin.com/articles/0412/000061.html