All Projects → bast → Gtest Demo

bast / Gtest Demo

Licence: bsd-3-clause
Unit test demo using Google Test.

Programming Languages

cpp
1120 projects

Labels

Projects that are alternatives of or similar to Gtest Demo

Diagon
Interactive ASCII art diagram generators. 🌟
Stars: ✭ 189 (-16.74%)
Mutual labels:  cmake
Vcmi
Open-source engine for Heroes of Might and Magic III
Stars: ✭ 2,514 (+1007.49%)
Mutual labels:  cmake
Skui
Skia-based C++ UI framework
Stars: ✭ 218 (-3.96%)
Mutual labels:  cmake
Wiiuse
WiiUse "feature complete" cross-platform Wii Remote access library
Stars: ✭ 196 (-13.66%)
Mutual labels:  cmake
Learning Cmake
learning cmake
Stars: ✭ 2,524 (+1011.89%)
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
Lirios
🏠 General issue tracking and wiki for Liri
Stars: ✭ 228 (+0.44%)
Mutual labels:  cmake
Fixed point
C++ Binary Fixed-Point Arithmetic
Stars: ✭ 199 (-12.33%)
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
Cpp Boilerplate
A small c++ template with modern CMake
Stars: ✭ 197 (-13.22%)
Mutual labels:  cmake
Astera
A C99 Cross Platform 2D Game Library
Stars: ✭ 193 (-14.98%)
Mutual labels:  cmake
Directx Vs Templates
Direct3D Visual Studio Templates
Stars: ✭ 205 (-9.69%)
Mutual labels:  cmake
Pothossdr
Pothos SDR windows development environment
Stars: ✭ 193 (-14.98%)
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
Papyros
General issue tracking and wikis for Papyros
Stars: ✭ 205 (-9.69%)
Mutual labels:  cmake
Frut
Building JUCE projects using CMake made easy
Stars: ✭ 228 (+0.44%)
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
Engine
A basic cross-platform 3D game engine
Stars: ✭ 208 (-8.37%)
Mutual labels:  cmake

Build Status Coverage Status License

gtest-demo

C/C++ unit test demo using Google Test with continuous integration provided by GitHub Actions and test coverage deployed to Coveralls.

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

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].