Google Test

GoogleTest - Google Testing and Mocking Framework (by google)

Google Test Alternatives

Similar projects and alternatives to Google Test

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

Suggest an alternative to Google Test

Reviews and mentions

Posts with mentions or reviews of Google Test. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-11.
  • Problem with including GoogleTest package in my CMake project
    cmake_minimum_required(VERSION 3.0) project("Smart Pointer Implementation") set(CMAKE_CXX_STANDARD 11) include(FetchContent) FetchContent_Declare(googletest URL set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) enable_testing() include_directories(include) add_subdirectory(src) add_subdirectory(test)
  • Unit testing and mocks in C++ | 2021-09-08
    Catch2 and Google Test are pretty much the gold standards. Any unittest framework should integrate into your IDE (although I personally don't use CLion).
  • [Question] Avoiding multiple downloads with FetchContent | 2021-08-27
    if(EXISTS $ENV{HOME}/local/repo/googletest) set(repo_googletest "file://$ENV{HOME}/local/repo/googletest") else() set(repo_googletest "") endif() include(FetchContent) set(BUILD_GMOCK TRUE CACHE BOOL "" FORCE) # do not repeat option, because of description FetchContent_Declare(googletest GIT_REPOSITORY ${repo_googletest} GIT_TAG release-1.11.0 ) FetchContent_MakeAvailable(googletest)
  • CXXGraph Library Release v0.1.5 | 2021-08-25
    # Check out the library. $ git clone # Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory. $ git clone benchmark/googletest # Go to the library root directory $ cd benchmark # Make a build directory to place the build output. $ cmake -E make_directory "build" # Generate build system files with cmake. $ cmake -E chdir "build" cmake -DCMAKE_BUILD_TYPE=Release ../ # or, starting with CMake 3.13, use a simpler form: # cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build" # Build the library. $ cmake --build "build" --config Release # install library $ sudo cmake --build "build" --config Release --target install
  • CMake: Deploying an application (which uses libraries opencv and pybind11) to the cloud
    FetchContent_Declare( googletest GIT_REPOSITORY GIT_TAG 703bd9caab50b139428cea1aaff9974ebee5742e # release-1.10.0 )
  • How do you (automatically) test your game? | 2021-07-27
    The first thing you can do is consider a unit testing framework, such as gtest. This is pretty simple automated testing, and it's even reasonably easy to implement your own rudimentary unit testing system. Integrating gtest or an alternative with your project should be quite straightforward by following the examples/documentation. This kind of testing validates functional behaviour and will alert you if any changes you make have unintended consequences on inputs/outputs of simple functions (i.e. that represent a deterministic mapping or known random distribution).
  • Carregando dependências em projetos C++ usando o CMake | 2021-07-14
    include(FetchContent) FetchContent_Declare(GoogleTest GIT_REPOSITORY GIT_TAG master ) FetchContent_MakeAvailable(GoogleTest)
  • What techniques do you have to develop before hardware is available? | 2021-07-08
    Everything else was covered: Ceedling+Unity+CMock for Unit Testing in C, CppuTest or GoogleTest or other options for C/C++. FFF is also useful when mocking. If you test and develop your modules correctly, they should when they are in your application. If you are developing using an Event-Driven Framework like QP or QML, then I would not test anything to do with the framework, but the functions that are called in each event. Same thing if you are using an RTOS, test what's inside your threads/tasks.
  • Testing non-trivial software (C++)
    The only c++ mock library I'm familiar with is Google Mock ( but I'm sure there are others.
  • Back into C++ in 2021: First Week | 2021-03-24
    Unit tests are weird It seems also really weird that the unit test lib, how to add them, how to work with them is not too well documented for newbies. I tried GTest and Catch2, but so far I have spent most of the time configuring the tools rather than actually writing tests, which is annoying.
  • Googletest - Google Testing and Mocking Framework
  • C Test Framework for Visual Studio Code


Basic Google Test repo stats
7 days ago

google/googletest is an open source project licensed under BSD 3-clause "New" or "Revised" License which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Find remote jobs at our new job board There are 25 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.