Jump to content

CppUnit

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 46.194.44.67 (talk) at 23:31, 2 October 2012 (missing space between text and link). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
CppUnit
Stable release1.15.1 (LibreOffice version)[1] (13 April 2017; 8 years ago (2017-04-13)) [±]
Repository
Written inC++
TypeUnit testing tool
LicenseGNU Lesser General Public License
Websitecppunit.sourceforge.net

CppUnit is a unit testing framework module for the C++ programming language, described as a C++ port of JUnit. The library is released under the GNU Lesser General Public License. The library can be compiled for a variety of POSIX platforms, allowing unit-testing of 'C' sources as well as C++ with minimal source modification. The framework has a neutral UI, running tests in suites. Test result output is sent to a filter, the most basic being a simple pass or fail count printed out, or more advanced filters allowing XML output compatible with continuous integration reporting systems [citation needed].

Currently work on a version 2.0 was started and an independent group created a fork from the original version.

See also

  • New fork of the first version CppUnit Project's site.
  • Llopis, Noel (2004-12-28). "Exploring the C++ Unit Testing Framework Jungle".
  • Unit-tests with C++ using the framework CppUnit
  • MiniCppUnit: Another C++ port with a minimalistic approach.
  • Unit++: A Unit-Testing framework designed to be an alternative to CppUnit, because of its focus in being more adapted to C++ language, instead of being a port of JUnit to C++.

Books

Game Programming Gems 6 (ISBN 1-58450-450-1) contains an article called "Using CPPUnit to implement unit testing" by Blake Madden