Welcome! to CppUnit Wiki.
On Feb. 26th, 2008, we upgraded to MoinMoin 1.6.1. Please let JohnWhitlock know by email if you encounter any issues.
Contents
What is CppUnit?
CppUnit is a C++ unit testing framework. It started its life as a port of JUnit to C++ by Michael Feathers. For a quick tour of unit testing with CppUnit, see the Cookbook in the latest documentation. For an introduction to unit testing, see UnitTest, ProgrammerTest, and CodeUnitTestFirst at the C2.com wiki.
Features:
XML output with hooks for additional data (XSL format avaliable in release 1.10.2 needs some FiXing)
- Compiler-like text output to integrate with an IDE
- Helper macros for easier test suite declaration
- Hierarchical test fixture support
- Test registry to reduce recompilation need
- Test plug-in for faster compile/test cycle (self testable dynamic library)
- Protector to encapsulate test execution (allow capture of exception not derived from std::exception)
QtTestRunner, a Qt based graphic test runner
QxTestRunner, a Qt4 based graphic test runner
WxWidgetsTestRunner (formerly: WxWindowsTestRunner)
Online documentation
CppUnit 1.11.6 (most current available - bug BaptisteLepilleur or JohnWhitlock to update to 1.12)
Other documentation
BuildingCppUnit1 (platform-specific build instructions contributed by users)
FrequentlyAskedQuestions - Frequently Asked Questions (answers always needed!)
User documentation for CppUnit:
Using CppUnit's MFCTestRunner with VS 6.0 Guide to getting MfcTestRunner working with VS6. It has images similar to those in the German document below, but they are from an English version of VS6.
Tips on setting up CppUnit with VC++ 6 Images are in German, but helpful to non-German speakers anyway.
Simplified Chinese Document on CppUnit Source Code Analysis http://www.polyrandom.com/content/view/16//
A CppUnit "Hello, world!" : http://pantras.free.fr/articles/helloworld.html
Step by step instructions on how to build CppUnit with Eclipse and CDT: CppUnitWithEclipse.
A Visual Studio Wizard to create a project to test a class. CppUnitVisualStudio2005Wizard
Download
It is recommended to download the latest stable version 1.12. You can find it on the SourceForge download page.
Link to CppUnit 1.12 source, documentation, and a cvs export of the source tarballs.
Link to the CVS What's News file.
CVS
You can get the most recent source from CVS. See instructions in the CVS tab of the SourceForgeProject page about accessing the CVS repository.
Alternatively, if you are behind a strict firewall, you can download the nightly backup tarball of the CVS repository (about 1.2Mo). You'll need to install it as a local CVS repository to use it.
The Future
A set of documents (features, todo...) concerning CppUnit 2 can be found at the following url: http://cppunit.sourceforge.net/cppunit2/.
There is a page for CppUnit2 discussions.
CppUnit Wiki
Information about this Wiki:
RecentChanges: see where people are currently working
HelpForBeginners: to get you going. Specifically, help on wiki, not on CppUnit
WikiSandBox: feel free to change this page and experiment with editing
FindPage: search or browse the database in various ways...
This wiki
Backups of this wiki are done nightly to a non-Sourceforge server. A backup of the wiki pages can be found at http://cppunit.sourceforge.net/backup/.
See SourceForge for information and tips on installing your own SourceForge wiki.
IRC
irc://irc.freenode.org/cppunit/, An IRC channel to discuss CppUnit and get help.