bast / Gtest Demo
Licence: bsd-3-clause
Unit test demo using Google Test.
Stars: ✭ 227
Programming Languages
cpp
1120 projects
Labels
Projects that are alternatives of or similar to Gtest Demo
Vcmi
Open-source engine for Heroes of Might and Magic III
Stars: ✭ 2,514 (+1007.49%)
Mutual labels: cmake
Wiiuse
WiiUse "feature complete" cross-platform Wii Remote access library
Stars: ✭ 196 (-13.66%)
Mutual labels: cmake
Cmake Scripts
A selection of useful scripts for use in CMake projects, include code coverage, sanitizers, and dependency graph generation.
Stars: ✭ 202 (-11.01%)
Mutual labels: cmake
Obs Studio Node
libOBS (OBS Studio) for Node.Js, Electron and similar tools
Stars: ✭ 193 (-14.98%)
Mutual labels: cmake
Compiler
Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Stars: ✭ 209 (-7.93%)
Mutual labels: cmake
Repository
Repository of LuaDist modules available for installation using the luadist-git command line tool
Stars: ✭ 218 (-3.96%)
Mutual labels: cmake
Gazebo ros demos
Example robots and code for interfacing Gazebo with ROS
Stars: ✭ 192 (-15.42%)
Mutual labels: cmake
Ios Cmake
A blank iOS app build system written in CMake. Includes building a dynamically linked C++ framework and bundling it into the app.
Stars: ✭ 220 (-3.08%)
Mutual labels: cmake
gtest-demo
C/C++ unit test demo using Google Test with continuous integration provided by GitHub Actions and test coverage deployed to Coveralls.
- Build and test history
- Code coverage
- Licensed under BSD-3
How to build this demo
git clone https://github.com/bast/gtest-demo.git
cd gtest-demo
cmake -S. -Bbuild
cmake --build build
Running the tests
Either using ctest
:
$ cd build
$ ctest
Running tests...
Test project /home/user/gtest-demo/build
Start 1: unit
1/1 Test #1: unit ............................. Passed 0.00 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 0.00 sec
Or directly using unit_tests
:
$ cd build
$ ./bin/unit_tests
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from example
[ RUN ] example.add
[ OK ] example.add (0 ms)
[ RUN ] example.subtract
[ OK ] example.subtract (0 ms)
[----------] 2 tests from example (1 ms total)
[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (1 ms total)
[ PASSED ] 2 tests.
Acknowledgments
- Container Travis setup thanks to Joan Massich.
- Clean-up in CMake code thanks to Claus Klein.
- Clean-up and GitHub Actions workflow: Roberto Di Remigio.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].