This post originated from an RSS feed registered with Agile Buzz
by Keith Ray.
Original Post: Reviews of C++ Unit Testing Frameworks
Feed Title: MemoRanda
Feed URL: http://homepage.mac.com/1/homepage404ErrorPage.html
Feed Description: Keith Ray's notes to be remembered on agile software development, project management, oo programming, and other topics.
Noel Llopis has a survey of CppUnit, Boost.Test, CppUnitLight, NanoCppUnit, Unit++, CxxTest. He has some examples and links to each of those frameworks.
Chuck Allison has an article on StickyMinds on XP-style unit testing with his own frameworks (C++ and C versions).
I use an old version of Michael Feather's CppUnit, with a few changes to avoid warnings from VC++ 6.0 and some additional macros to simplify creating test classes. Creating a simple unit test framework, once you have experience with one, is pretty easy. I would recommend doing it once so that you have the experience; later, if you need a framework when one isn't handy, you can whip one up in an hour or less.
This page is something of a clearing-house for unit test frameworks: http://www.xprogramming.com/software.htm. Check it out. Submit your own framework to this page if you want to share it.