CppUnit
Stable release | 1.15.1 (LibreOffice version)[1] (13 April 2017 ) [±] |
---|---|
Repository | |
Written in | C++ |
Type | Unit testing tool |
License | LGPL |
Website | freedesktop |
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. It can be compiled for a variety of POSIX platforms. It allows 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.[2][3]
The project has been forked several times.[4][5] The freedesktop.org version, maintained by the LibreOffice project (which uses CppUnit heavily), is actively maintained, and is used in Linux distributions such as Debian, Ubuntu, Gentoo and Arch.[6]
See also
- List of unit testing frameworks
- Unit++ (more C++ like than CppUnit)
Further reading
- Madden, Blake (6 April 2006). "1.7: Using CPPUnit to implement unit testing". In Dickheiser, Mike (ed.). Game Programming Gems 6. Charles River Media. ISBN 1-58450-450-1.
References
- ^ "Commit description".
- ^ Jenkins plug-in for CppUnit and other Unit Test tools
- ^ SonarQube plug-in for CppUnit and other Unit Test tools
- ^ freedesktop.org fork presented as CppUnit v1.13
- ^ fork presented as CppUnit2; not modified since 2009
- ^ http://lists.freedesktop.org/archives/libreoffice/2013-October/056919.html
External links
- Official website (freedesktop.org version)