Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ cpp_tests Public template

C++ Google Tests crossplatform project template with CI/CD. Has a shell installation script.

License

Notifications You must be signed in to change notification settings

bialger/cpp_tests

Repository files navigation

C++ project template with Google Tests and CI/CD

This is a project template. Feel free to use & fork it. It contains all pre-configured CMakeLists.txt, so to use it, replace project name with your one in main CmakeLists.txt, and all target and executable names in CI/CD script. Sample program prints a greeting for the first argument.

How to build and run

Run the following commands from the project directory.

  1. Create CMake cache
cmake -S . -B cmake-build
  1. Build executable target
cmake --build cmake-build --target cpp_tests
  1. Build tests target
cmake --build cmake-build --target cpp_tests_tests
  1. Run executable target
  • On Windows:
.\cmake-build\cpp_tests.exe World
  • On *nix:
./cmake-build/bin/cpp_tests World
  1. Run tests
  • On Windows:
.\cmake-build\cpp_tests_tests.exe
  • On *nix:
./cmake-build/tests/cpp_tests_tests

About

C++ Google Tests crossplatform project template with CI/CD. Has a shell installation script.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /