CppUnit
{{Short description|Unit testing framework module}}
{{Infobox software
| name = CppUnit
| programming language = C++
| genre = Unit testing tool
| license = LGPL
| website = {{URL|freedesktop.org/wiki/Software/cppunit}}
}}
CppUnit is a unit testing framework module for the C++ programming language. It allows unit-testing of C sources as well as C++ with minimal source modification. It was started around 2000 by Michael Feathers as a C++ port of JUnit for Windows and ported to Unix by Jerome Lacoste.{{cite web|url=http://people.freedesktop.org/~mmohrhard/cppunit/|title=CppUnit Documentation|first=Markus|last=Mohrhard|publisher=freedesktop.org}} The library is released under the GNU Lesser General Public License.
The framework runs 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.Jenkins [https://wiki.jenkins-ci.org/display/JENKINS/xUnit+Plugin plug-in] for CppUnit and other Unit Test tools
The project has been forked several times.[http://www.freedesktop.org/wiki/Software/cppunit freedesktop.org fork] presented as CppUnit v1.13[http://sourceforge.net/apps/trac/cppunit2/wiki/WikiStart fork] presented as CppUnit2; not modified since 2009 The freedesktop.org version at [https://github.com/freedesktop/libreoffice-cppunit GitHub], maintained by Markus Mohrhard of the LibreOffice project (which uses CppUnit heavily), was actively maintained until 2020, and is used in Linux distributions such as Debian, Ubuntu, Gentoo and Arch.{{cite web|url=http://lists.freedesktop.org/archives/libreoffice/2013-October/056919.html|title=cppunit framework|first=Markus|last=Mohrhard|work=LibreOffice mailing list|date=22 October 2013|access-date=20 March 2014}}
__NOTOC__
See also
{{Portal|Free and open-source software|Computer programming}}
Further reading
- {{cite book |last=Madden|first=Blake|editor-first=Mike|editor-last=Dickheiser|title=Game Programming Gems 6|publisher=Charles River Media |date=6 April 2006|chapter=1.7: Using CPPUnit to implement unit testing |isbn=1-58450-450-1}}
References
{{Reflist}}
External links
- {{Official website}} (freedesktop.org version)
{{Freedesktop.org}}
{{LibreOffice}}