Skip to content

lucpelletier/cmake-gtest-template

Repository files navigation

CMake Project Template with GoogleTest

CI Status

Build Status

Getting Started

On Ubuntu, install the latest cmake with:

sudo snap install --classic cmake

Building and Running Tests

To build the project, run:

cd <repository root>
pip3 install cmake
mkdir build
cmake -GNinja -S . -B build
cd build
cmake --build .
ctest

Test Naming Convention

The google tests use the following naming convention:

MethodName_StateUnderTest_ExpectedBehavior

For more details, see https://osherove.com/blog/2005/4/3/naming-standards-for-unit-tests.html.

CMake Best Practices

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published