C++ Tutorial - Project testing - Test cases with mocks using gtest and gmock (for beginners)

Опубликовано: 18 Март 2026
на канале: cppdev
3,341
41

Learn how to integrate gmock in your build, implement and use mocks in your (gtest) test cases...
Has information on google test and google mock.


Source code: https://bit.ly/3iCemDe
Cppdev store : https://teespring.com/stores/cppdev-s...
Music : www.bensound.com

Table of contents:
0:00 Intro
0:20 General information (gTest and gMock)
1:40 Information about class to be mocked
3:17 Mock implementation
7:26 GMock lib integration with CMake build system
8:13 Adaptations for testable code
10:30 Test cases with gTest and gMock
20:53 Outro