| Exploring Solution Spaces © Copyright 2003-2006, by C. Keith Ray | ||||||||||||||||||||||||
|
Archives
Subscribe |
2005.Jan.02 Sun
Reviews of C++ Unit Testing Frameworks
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). William Tanksley described how he and his coworker created CUT, which is on SourceForge/projects/cut/. 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. |
|||||||||||||||||||||||