UnitTest++ alternatives and similar libraries
Based on the "Debug" category.
Alternatively, view UnitTest++ alternatives based on common mentions on social networks and blogs.
Google Test9.9 9.1 L3 UnitTest++ VS Google TestGoogleTest - Google Testing and Mocking Framework
Catch9.5 8.9 L4 UnitTest++ VS CatchA modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
benchmark9.0 8.4 L3 UnitTest++ VS benchmarkA microbenchmark support library
doctest8.2 6.1 L1 UnitTest++ VS doctestThe fastest feature-rich C++11/14/17/20/23 single-header testing framework
Unity Test API7.9 7.9 UnitTest++ VS Unity Test APISimple Unit Testing for C
backward-cpp7.5 4.4 L2 UnitTest++ VS backward-cppA beautiful stack trace pretty printer for C++
Remotery7.0 8.5 UnitTest++ VS RemoterySingle C file, Realtime CPU/GPU Profiler with Remote Web Viewer
GDBFrontend6.9 8.4 UnitTest++ VS GDBFrontend☕ GDBFrontend is an easy, flexible and extensible gui debugger. Try it on https://debugme.dev
easy_profiler6.6 0.0 L1 UnitTest++ VS easy_profilerLightweight profiler library for c++
CppUTest6.5 7.0 UnitTest++ VS CppUTestCppUTest unit testing and mocking framework for C/C++
VLD5.9 0.0 L2 UnitTest++ VS VLDVisual Leak Detector for Visual C++ 2008-2015
Celero4.9 0.0 L2 UnitTest++ VS CeleroC++ Benchmark Authoring Library/Framework
fff4.8 6.2 UnitTest++ VS fffA testing micro framework for creating function test doubles
utest.h4.2 6.6 UnitTest++ VS utest.h🧪 single header unit testing framework for C and C++
minUnit4.1 0.0 L4 UnitTest++ VS minUnitMinimal unit testing framework for C
hayai3.8 0.0 L2 UnitTest++ VS hayaiC++ benchmarking framework
Boost.Test3.6 0.0 L4 UnitTest++ VS Boost.TestThe reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)
libtap3.4 2.8 L4 UnitTest++ VS libtapWrite tests in C
ig-debugheap2.8 0.0 L4 UnitTest++ VS ig-debugheapDebug heap useful for tracking down memory errors.
Nonius2.4 0.0 L5 UnitTest++ VS NoniusA C++ micro-benchmarking framework
CppUnit1.5 0.0 UnitTest++ VS CppUnitC++ port of JUnit
Google MockA library for writing and using C++ mock classes. [BSD]
CUTEC++ Unit Testing Easier. [LGPL3]
CMockaunit testing framework for C with support for mock objects. [Apache2]
MockatorEclipse CDT plug-in for C++ Seams and Mock Objects.
MemTrackTracking memory allocations in C++.
CTestThe CMake test driver program. [BSD]
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of UnitTest++ or a related project?
### Maintenance of UnitTest++, recently sporadic, is officially on hiatus until 26 November 2020. Subscribe to https://github.com/unittest-cpp/unittest-cpp/issues/180 for updates.
UnitTest++ is a lightweight unit testing framework for C++. It was designed to do test-driven development on a wide variety of platforms. Simplicity, portability, speed, and small footprint are all very important aspects of UnitTest++. UnitTest++ is mostly standard C++ and makes minimal use of advanced library and language features, which means it should be easily portable to just about any platform. Out of the box, the following platforms are supported:
- Mac OS X
The full documentation for building and using UnitTest++ can be found on the GitHub wiki page. The contents of this wiki are also included as a git submodule under the
docs folder, so version-specific Markdown documentation is always available along with the download.
While there are currently some bundled automake files, UnitTest++ is primarily built and supported using CMake.
git clone https://github.com/unittest-cpp/unittest-cpp
svn checkout https://github.com/unittest-cpp/unittest-cpp/trunk unittest-cpp
Latest release (v2.0.0)
git clone https://github.com/unittest-cpp/unittest-cpp cd unittest-cpp git checkout v2.0.0
svn checkout https://github.com/unittest-cpp/unittest-cpp/tags/v2.0.0 unittest-cpp
UnitTest++ is free software. You may copy, distribute, and modify it under the terms of the License contained in the file LICENSE distributed with this package. This license is the same as the MIT/X Consortium license.
GitHub Contributor Graph
- Patrick Johnmeyer ([email protected]) @pjohnmeyer
- Charles Nicholson ([email protected]) @charlesnicholson
- Noel Llopis ([email protected])
- Charles Nicholson ([email protected])
Contributors not included in github history
- Jim Tilander
- Kim Grasman
- Jonathan Jansson
- Dirck Blaskey
- Rory Driscoll
- Dan Lind
- Matt Kimmel -- Submitted with permission from Blue Fang Games
- Anthony Moralez
- Jeff Dixon
- Randy Coulman
- Lieven van der Heide
Historic release notes
Version 2.0.0 (2017-01-13)
- Change Check method supporting CHECK macro to accept argument by reference
- Introduce long macro forms (e.g. UNITTEST_CHECK); make short forms optional
- Improved Visual Studio 2015 support
- Full List
Version 1.6.0 (2016-02-29)
- Add REQUIRE macro to end tests early when selected checks fail
- Full List
Version 1.5.1 (2016-01-30)
- pkg-config support
- Fix for Visual Studio 2010 compilation issue in 1.5.0
- Full List
Version 1.5 (2015-11-04)
- Visual Studio 2015 support
- CMake-based build management
- Integration of SourceForge and Google Code versions of the project
- Full List
Version 1.4 (2008-10-30)
- CHECK macros work at arbitrary stack depth from inside TESTs.
- Remove obsolete TEST_UTILITY macros
- Predicated test execution (via TestRunner::RunTestsIf)
- Better exception handling for fixture ctors/dtors.
- VC6/7/8/9 support
Version 1.3 (2007-4-22)
- Removed dynamic memory allocations (other than streams)
- MinGW support
- Consistent (native) line endings
- Minor bug fixing
Version 1.2 (2006-10-29)
- First pass at documentation.
- More detailed error crash catching in fixtures.
- Standard streams used for printing objects under check. This should allow the use of standard class types such as std::string or other custom classes with stream operators to ostream.
- Standard streams can be optionally compiled off by defining UNITTEST_USE_CUSTOM_STREAMS in Config.h
- Added named test suites
- Added CHECK_ARRAY2D_CLOSE
- Posix library name is libUnitTest++.a now
- Floating point numbers are postfixed with 'f' in the failure reports
Version 1.1 (2006-04-18)
- CHECK macros do not have side effects even if one of the parameters changes state
- Removed CHECK_ARRAY_EQUAL (too similar to CHECK_ARRAY_CLOSE)
- Added local and global time constraints
- Removed dependencies on strstream
- Improved Posix signal to exception translator
- Failing tests are added to Visual Studio's error list
- Fixed Visual Studio projects to work with spaces in directories
Version 1.0 (2006-03-15)
- Initial release
*Note that all licence references and agreements mentioned in the UnitTest++ README section above are relevant to that project's source code only.