CPPUnit
Encyclopedia
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 .
Unit test
In computer programming, unit testing is a method by which individual units of source code are tested to determine if they are fit for use.A unit is the smallest testable part of an application. In procedural programming a unit could be an entire module but is more commonly an individual function...
framework module for the C++ programming language
C++
C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features. It was developed by Bjarne Stroustrup starting in 1979 at Bell...
, described as a C++ port of JUnit
JUnit
JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit that originated with SUnit....
. The library is released under the GNU Lesser General Public License. The library can be compiled for a variety of POSIX
POSIX
POSIX , an acronym for "Portable Operating System Interface", is a family of standards specified by the IEEE for maintaining compatibility between operating systems...
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 .
See also
- Unit++Unit++unit++ is a unit testing framework module for C++. The author started it as an alternative to CppUnit, which he felt was insufficiently integrated into the C++ language....
- DUnitDUnitDUnit is an automated unit testing framework for Borland Delphi. DUnit allows Delphi developers to use test-driven development.DUnit's original code was written by Juanco Anez and is based on JUnit by Kent Beck and Erich Gamma....
- JUnitJUnitJUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit that originated with SUnit....
- NUnitNUnitNUnit is an open source unit testing framework for Microsoft .NET. It serves the same purpose as JUnit does in the Java world, and is one of many in the xUnit family.- Example :Example of an NUnit test fixture:using NUnit.Framework; [TestFixture]...
- List of unit testing frameworks
External links
- Project's site.
- 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++C++C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features. It was developed by Bjarne Stroustrup starting in 1979 at Bell...
language, instead of being a port of JUnitJUnitJUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit that originated with SUnit....
to C++.