googletest

(★ 38,951)

GoogleTest - Google Testing and Mocking Framework

File Explorer

  • .clang-format
  • .gitignore
  • BUILD.bazel
  • CMakeLists.txt
  • CONTRIBUTING.md
  • CONTRIBUTORS
  • fake_fuchsia_sdk.bzl
  • googletest_deps.bzl
  • LICENSE
  • MODULE.bazel
  • README.md
  • WORKSPACE
  • WORKSPACE.bzlmod

# Installation Guide

cmake
Prerequisites

Setup Steps

mkdir build

Create a directory for building.

cd build

Navigate to the build directory.

cmake ..

Generate build files using CMake.

cmake --build .

Build the project.

ctest

Run tests to verify the build.

Key Commands

cmake -DCMAKE_BUILD_TYPE=Release ..

Generates platform-specific build files via CMake configuration.

cmake --build . --config Release

Invokes the underlying build tool to compile the project.

ctest --output-on-failure

Executes the unit test suite included in the project.

bazel test //...

Builds and runs tests using the Bazel build system.

The GoogleTest 1.18.x branch requires a compiler that supports at least C++17.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Release Timeline

Actively Maintained

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

write

View Details ▼

Write data to memory.

write memory

Write current configuration to memory:

write {{username}} {{terminal_id}}

Send a message to a given user on a given terminal ID:

write {{username}} {{terminal_id}}

Send a message to a given user on a given terminal ID:

// repository documentation