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)

Catch Alternatives

Similar projects and alternatives to Catch

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Catch alternative or higher similarity.

Catch reviews and mentions

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-01-16.
  • snitch v1.0 -- A lightweight C++20 testing framework
    4 projects | | 16 Jan 2023
    Looks good but currently at least REQUIRE (most likely all the other checks too but I didn't test that) fails to correctly evaluate some expressions, due to fundamental problems with macros. One example is described in this issue of the Catch2 repository.
  • IDE for CPP(leetcode)
    4 projects | | 3 Jan 2023
    However, you can use a unit test framework like GoogleTest or Catch2 whic creates a main() function for you which allows you to run single functions, as long as they have been created through some preprocessor macros. Then you can use a VS Code test adapter like this or this which may let you run a single test by right clicking it directly in VS Code.
  • CPM.cmake to make CMake's FetchContent easier
    4 projects | | 28 Dec 2022
    include(FetchContent) FetchContent_Declare( Catch2 GIT_REPOSITORY GIT_TAG v3.0.0-preview4 ) FetchContent_Declare( fmt GIT_REPOSITORY GIT_TAG 9.1.0 ) FetchContent_Declare( scnlib GIT_REPOSITORY GIT_TAG v1.1.2 ) FetchContent_MakeAvailable(Catch2 fmt scnlib)
  • New to C++
    2 projects | | 20 Dec 2022
    Make sure you write unit tests, I use gtest but catch2 is also good.
  • Transitioning from Java to C++
    4 projects | | 15 Dec 2022
    I've only ever personally used Catch2, Boost.Test, and a few proprietary unit test frameworks from my company. I enjoy using both Catch2 and Boost.Test, but they have a very different feel. Of these two I find Catch2 easier to get started with. It also has very good CMake an CTest integration. I have heard good things about GoogleTest, but I have never used it myself. GoogleTest also has good CTest support
  • C++ unit testing with Catch2 🧪👨‍🔬
    2 projects | | 15 Nov 2022
    Writing unit tests for my static site generator - palpatine, taught me an entirely new testing framework called Catch2. For my Hacktoberfest pull request this year I had done a unit testing contribution for a repository and I am currently working on building a microservice for my cloud computing class which requires us to use Jest for JavaScript unit testing. So, I can say that I have some experience with unit testing and continuing to develop my skills in it.
  • Reflect of Lab09
    3 projects | | 14 Nov 2022
    To set up the GitHub Actions, we first need to create 2 folders, a .github in the root directory of the repository, and a workflows folder inside .github folder we just created. In the workflows folder, we create a YAML file to save the GitHub Actions configuration. I programmed my project in C++ with Catch 2 for the testing framework, my GitHub Actions should be set up with C++ software stacks. The process of how I set up my YAML is as follows:
  • OSD600 Lab 8
    3 projects | | 11 Nov 2022
    This week, I added a testing module to my SSG. Since my SSG was created using C++, I used Catch2 as my testing framework. I chose Catch2 as my testing framework since it seemed to be the most popular among C++ developers, and it was all contained within a single header file.
  • snatch -- A lightweight C++20 testing framework
    5 projects | | 18 Oct 2022
    Author here! This testing framework is meant to have a very small footprint, in terms of compilation time, executable size, and runtime, but still be super easy to use and able to print nicely presented messages when assertions fail. It was modeled after Catch2, and reproduces its convenient REQUIRE(expr) and CHECK(expr) assertion macros.
  • Tester votre code autrement avec ApprovalTests
    2 projects | | 22 Jul 2022
  • A note from our sponsor - Sonar | 3 Feb 2023
    Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work. Learn more →


Basic Catch repo stats
1 day ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives