Catch
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) (by catchorg)
greatest
A C testing library in 1 file. No dependencies, no dynamic allocation. ISC licensed. (by silentbicycle)
Catch | greatest | |
---|---|---|
55 | 7 | |
18,020 | 1,457 | |
0.7% | - | |
9.2 | 0.0 | |
2 days ago | 11 months ago | |
C++ | C | |
Boost Software License 1.0 | ISC License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Catch
Posts with mentions or reviews of Catch.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-05.
- C++ Comparison Operator Craziness
-
How can I check the execution time of a program rendered in SFML?
https://github.com/catchorg/Catch2 (for unit testing, need to do timing yourself)
- Semi crise existentielle de développeur
-
`DestroyJavaVM()` failing on OpenJ9?
```c++ // https://github.com/catchorg/Catch2/tree/Catch1.x // https://github.com/philsquared/Catch/releases/download/v1.12.2/catch.hpp
-
How do you use the Catch testing library?
Include(FetchContent) FetchContent_Declare(Catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_TAG v3.3.2 ) FetchContent_MakeAvailable(Catch2)
- Tracking the Fake GitHub Star Black Market
- The Little Things: Why you should always have benchmarks ready
-
Trying to add tests for my cmake for catch2 with ctest.
Another possible issue would be the include(Catch) in your root cmakelists.txt . To include Catch there it must be part of your module path. Otherwise you have to include the path to that catch2 cmake file. Here is that file in their repository - https://github.com/catchorg/Catch2/blob/devel/extras/Catch.cmake . I recon that CMake doesn't know about this file since you call find_package(Catch2 REQUIRED) later in your subdirectory
-
Seeking Improve Advice on my C++ Network Library
Unit test coverage by Catch2 framework.
- Catch2 added SKIP (and more built-in matchers)
greatest
Posts with mentions or reviews of greatest.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-05.
-
Test frameworks recommendation
I’ve only used greatest.h before. It was pretty ok, easy enough to use.
-
Basic programming help
Get a unit test library/framework. There are many good ones, but if you can't decide take greatest because it's a single-header library and easy to use.
-
Looking for unittest libraries in pure C
Greatest is 1 header file. https://github.com/silentbicycle/greatest
-
I have a problem with my final assignment, can you help me?
I'd recommend writing tests. Use a testing library (e.g. Unity or Greatest). Even if that sounds like more work right now, it can help find issues early, gives you confidence that your code does what it should, and often lets you progress much faster.
-
Testing Frameworks for C++, ESP32
I have used Greatest. Works great for my purposes.
-
Test framework for C
I use greatest it's pretty easy and just a header to copy into the source tree.
-
Rust and C++ Unit testing with cxx
(TL;DR greatest is the greatest test framework I could find for that particular use case. See my "research I did" link for details.)
What are some alternatives?
When comparing Catch and greatest you can also consider the following projects:
Google Test - GoogleTest - Google Testing and Mocking Framework
Unity Test API - Simple Unit Testing for C
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
AUnit - Unit testing framework for Arduino platforms inspired by ArduinoUnit and Google Test. Used with EpoxyDuino for continuous builds.
Boost.Test - The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)
Criterion - A cross-platform C and C++ unit testing framework for the 21st century
CppUTest - CppUTest unit testing and mocking framework for C/C++
build - Sample project showing a minimalist multiplatform build
Google Mock
software-for-fun
CppUnit - C++ port of JUnit
mite - Minimalist test framework for C language.