8 comments

[ 2.4 ms ] story [ 44.1 ms ] thread
I haven't done any C++ in quite some time. Unit Tests would be a must-have at this point.

Anyone used this and can report how well it works?

I can't report on this, but assuming you need a unit test package for C++ I can tell you that UnitTest++[1] was very easy to pick up for me (after not having done any C++ for 10+ years).

[1] http://unittest-cpp.sourceforge.net/

I use CxxTest¹ but there is also GoogleTest².

Neither of these suck nor are they tied to a single platform.

 

¹ http://cxxtest.tigris.org/

² http://code.google.com/p/googletest/

(comment deleted)
The ideas here are interesting, but they are going to need much better documentation to prove to me they provide $600 worth of value. For now I will stick with Boost Test which is a simple to use cross platform C++ unit testing library, and it definitely doesn't suck: http://www.boost.org/doc/libs/release/libs/test/doc/html/ind...

EDIT: I found the better documentation: http://docs.typemock.com/Isolatorpp/Default.aspx##ippHelp.ch... They have a seemingly magic way of hooking already existing classes allowing you to mock out methods without manual subclassing.