kandi background
Explore Kits

11 best C++ Unit Testing libraries in 2022

by Open Weaver kits ✔ Updated: Apr 6, 2022

Unit testing is the first level of software testing where individual units/ components of a software are tested. The purpose is to validate that each unit of the software performs as designed. A unit is the smallest testable part of any software. It usually has one or a few inputs and usually a single output. Good code coverage does not guarantee your software is bug-free, but it does determine that your code has been executed during a test run. In this list, we list down 11 best C++ Unit Testing Open Source libraries that you can use in your project. Such as Catch2 - A modern, Cnative, headeronly, test framework for unittests, TDD and BDD using C11, C14, C17 and later; cpputest - CppUTest unit testing and mocking framework for C/C++; unittest-cpp | A lightweight unit testing framework for C++.

Catch2by catchorg

C++ star image 16052 Version:v3.2.1

License: Permissive (BSL-1.0)

A 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)

Support
Quality
Security
License
Reuse

Catch2by catchorg

C++ star image 16052 Version:v3.2.1 License: Permissive (BSL-1.0)

A 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)
Support
Quality
Security
License
Reuse

cpputestby cpputest

C++ star image 922 Version:latest-passing-build

License: Permissive (BSD-3-Clause)

CppUTest unit testing and mocking framework for C/C++

Support
Quality
Security
License
Reuse

cpputestby cpputest

C++ star image 922 Version:latest-passing-build License: Permissive (BSD-3-Clause)

CppUTest unit testing and mocking framework for C/C++
Support
Quality
Security
License
Reuse

Claraby catchorg

C++ star image 637 Version:v1.1.5

License: Permissive (BSL-1.0)

A simple to use, composable, command line parser for C++ 11 and beyond

Support
Quality
Security
License
Reuse

Claraby catchorg

C++ star image 637 Version:v1.1.5 License: Permissive (BSL-1.0)

A simple to use, composable, command line parser for C++ 11 and beyond
Support
Quality
Security
License
Reuse

unittest-cppby unittest-cpp

C++ star image 462 Version:v2.0.0

License: Permissive (MIT)

A lightweight unit testing framework for C++

Support
Quality
Security
License
Reuse

unittest-cppby unittest-cpp

C++ star image 462 Version:v2.0.0 License: Permissive (MIT)

A lightweight unit testing framework for C++
Support
Quality
Security
License
Reuse

CMockby ThrowTheSwitch

C++ star image 387 Version:v2.5.3

License: Permissive (MIT)

CMock - Mock/stub generator for C

Support
Quality
Security
License
Reuse

CMockby ThrowTheSwitch

C++ star image 387 Version:v2.5.3 License: Permissive (MIT)

CMock - Mock/stub generator for C
Support
Quality
Security
License
Reuse

textflowcppby catchorg

C++ star image 87 Version:Current

License: Permissive (BSL-1.0)

A simple, single-header-only library, for wrapping text. In C++

Support
Quality
Security
License
Reuse

textflowcppby catchorg

C++ star image 87 Version:Current License: Permissive (BSL-1.0)

A simple, single-header-only library, for wrapping text. In C++
Support
Quality
Security
License
Reuse

CppUMockGenby jgonzalezdr

C++ star image 24 Version:v0.6

License: Permissive (BSD-3-Clause)

Mock generator for CppUTest/CppUMock

Support
Quality
Security
License
Reuse

CppUMockGenby jgonzalezdr

C++ star image 24 Version:v0.6 License: Permissive (BSD-3-Clause)

Mock generator for CppUTest/CppUMock
Support
Quality
Security
License
Reuse

tstby cppfw

C++ star image 8 Version:Current

License: Permissive (MIT)

C++ xUnit-like testing framework without macros

Support
Quality
Security
License
Reuse

tstby cppfw

C++ star image 8 Version:Current License: Permissive (MIT)

C++ xUnit-like testing framework without macros
Support
Quality
Security
License
Reuse

cookiecutter-kata-cpputestby EvolvedHQ

C++ star image 5 Version:Current

License: Strong Copyleft (GPL-3.0)

A cookiecutter template for creating a simple C++ TDD code kata project using CppUTest

Support
Quality
Security
License
Reuse

cookiecutter-kata-cpputestby EvolvedHQ

C++ star image 5 Version:Current License: Strong Copyleft (GPL-3.0)

A cookiecutter template for creating a simple C++ TDD code kata project using CppUTest
Support
Quality
Security
License
Reuse

DolphinTradingIndicatorsby jfantell

C++ star image 6 Version:Current

License: Permissive (MIT)

Demonstrates how to build a hybrid C++/Python package using CMake.

Support
Quality
Security
License
Reuse

DolphinTradingIndicatorsby jfantell

C++ star image 6 Version:Current License: Permissive (MIT)

Demonstrates how to build a hybrid C++/Python package using CMake.
Support
Quality
Security
License
Reuse

orbital shippingby cinnaboot

C++ star image 0 Version:Current

License: Strong Copyleft (GNU GPLv3)

Support
Quality
Security
License
Reuse

orbital shippingby cinnaboot

C++ star image 0 Version:Current License: Strong Copyleft (GNU GPLv3)

Support
Quality
Security
License
Reuse

See similar Kits and Libraries

Testing
Unit Testing