/googletest-ci

Continuous integration (CI) + Google Test (gtest) + CMake example boilerplate demo

Primary LanguageCMakeOtherNOASSERTION

googletest-ci

CI Service Build Status
GitHub Actions Build Status (GitHub Actions)
CircleCI Build Status (CircleCI)
Azure Pipelines Build Status

Example of unit testing with Google Test compiled with CMake and deployed to various continuous integration (CI) systems.

Dependency management is performed by CMake's FetchContent module, a part of CMake as of version 3.11 that works much like Google Test's ExternalProject method. This can fetch and build Google Test at a specific revision in a more concise way than scripting CI to download, extract, and build release packages, all while making it easier for somebody who downloads this project to run the tests with minimal steps.

Manual build & run

After cloning, to build:

cmake -S . -B mybuild
cd mybuild
cmake --build .

Then to run:

ctest

License

Public domain-like, under CC0. License CC0