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.

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 2023-09-26.
  • Basic C++ Unit Testing with GTest, CMake, and Submodules
    2 projects | | 26 Sep 2023
    > git submodule add > git submodule update --init --recursive
  • CI/CD pipelines for embedded
    2 projects | /r/embedded | 15 May 2023
    Not sure about CppUnit but I can speak to my previous experience using the googletest framework which compiles your tests to an executable, and since it's a very simple framework we were able to cross-compile and run directly on our device. We just had to hook up a device to the server that was running the CI so it could flash it when needed. That basically meant that our process was:
  • Basic CMake question regarding subdirectories
    2 projects | /r/cpp_questions | 19 Apr 2023
  • IDE for CPP(leetcode)
    4 projects | /r/cpp_questions | 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.
  • New to C++
    2 projects | /r/cpp | 20 Dec 2022
    Make sure you write unit tests, I use gtest but catch2 is also good.
  • cc toolchain for macOS Monterey / Apple M1
    2 projects | /r/bazel | 1 Dec 2022
    load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") BAZEL_TOOLCHAIN_TAG = "0.7.2" BAZEL_TOOLCHAIN_SHA = "f7aa8e59c9d3cafde6edb372d9bd25fb4ee7293ab20b916d867cd0baaa642529" http_archive( name = "com_grail_bazel_toolchain", sha256 = BAZEL_TOOLCHAIN_SHA, strip_prefix = "bazel-toolchain-{tag}".format(tag = BAZEL_TOOLCHAIN_TAG), canonical_id = BAZEL_TOOLCHAIN_TAG, url = "{tag}.tar.gz".format(tag = BAZEL_TOOLCHAIN_TAG), ) load("@com_grail_bazel_toolchain//toolchain:deps.bzl", "bazel_toolchain_dependencies") bazel_toolchain_dependencies() load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm_toolchain") llvm_toolchain( name = "llvm_toolchain", llvm_version = "15.0.5", ) load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains") llvm_register_toolchains() http_archive( name = "com_google_googletest", urls = [""], strip_prefix = "googletest-609281088cfefc76f9d0ce82e1ff6c30cc3591e5", )
  • Stranger Strings: An exploitable flaw in SQLite
    2 projects | | 25 Oct 2022
    > Your test suite may not be able to hit it either.

    Minor nitpick, process terminations are unit-testable in general; see e.g.

  • Issues setting up Gtest using cmake
    2 projects | /r/cpp_questions | 4 Oct 2022
    include(FetchContent) FetchContent_Declare( googletest GIT_REPOSITORY GIT_TAG release-1.12.1 ) add_executable(tests main_tests.cpp) target_link_libraries(tests GTest::gtest_main) include(GoogleTest) gtest_discover_tests(tests)
  • Hacktobefest 2022: My Repo
    8 projects | | 30 Sep 2022
    git clone # Dowload the Google Test repository cd googletest # Main directory of the cloned repository. mkdir -p build # Create a directory to hold the build output. cd build # Move
  • How to make my Boost unit testing work?
    3 projects | /r/cpp_questions | 20 May 2022
    Swap Boost Test for something better and more modern. The current industry standard is Catch2 and google test. There are much better documentation available on how to use those than the ancient and dying boost stuff.
  • A note from our sponsor - SonarCloud | 27 Sep 2023
    SonarCloud, a cloud-based static analysis tool for your CI/CD workflows, offers a one-click automatic analysis of C and C++ projects hosted on GitHub. Zero configuration and free for open-source projects! Analyze free. Learn more →


Basic Google Test repo stats
6 days ago
Collect and Analyze Billions of Data Points in Real Time
Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.