This is the web page for a C++ unit test framework. Its design goals are to be simple, to be idiomatic C++, and to follow the basic xUnit style to the extent that doing so is compatible with the earlier goals. Its main differences from other xUnit frameworks are that it uses constructors and destructors for setup/teardown and that it requires you to represent tests as classes, instead of methods.
It was originally written for a project at (a startup purchased by) Sun Microsystems, and is released under a BSD-style license. There's still some amount of work to do to make it more suitable for general use; if you're interested in helping, please let me know.
You can check it out of its Subversion archive by doing the following:
svn co http://svn.red-bean.com/unittest/trunk/ unittest
You'll then be able to run
configure from the top
level; if you're lucky, typing
make will then build
the library and run its tests. If that works,
install should install it. If that doesn't work,
please let me know.
You can also download a tar file of the latest revision. (Updated nightly.)
The text on this page may be copied and distributed, in modified or unmodified form, by anybody for any purpose.