Skip to content

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

License

Notifications You must be signed in to change notification settings

GHF/googletest-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published