I have never used any unit test framework with C++. Now I took CppUTest version 3.6. I am trying to compile library according to README_InstallCppUTest.txt file:
./configure => OK
make => Not OK
src/CppUTest/JUnitTestOutput.cpp:170:29: error: use of old-style cast [-Werror,-Wold-style-cast]
Shall I correct all of these compiling error or can I somehow skip the errors? I know that g++ is symbolic link to clang in OSX.
Previously I tried to use gtest. Basically it was very nice when making dummy test (e.g. EXPECT_EQ(1,1)
). When I tried to test a class of normal production code, it was difficult to find how to use stubs or mocs. So I decided to try CppUTest.