Google c++ test Mocking Framework Part- 5 Using Google Mocks c++ gmock and c++ gtest tips and tricks

Опубликовано: 02 Февраль 2018
на канале: Cognitive Programmer
38,443
463

👉 Channel Name changed because of Rebranding Exercise. Existing Social media handles and links are no longer valid.
--------------------------------------------------------------------------------
Welcome to the video series on google test framework c++ gtest and c++ gmock. gtest and gmock are by far the best and widely used unit testing framework for c++ programming language.

In the world of software development, unit testing is an extremely important activity to write bug free code

Google Test is a Unit Testing Framework for writing unit tests for C++ code. Google Test Framework i.e GTest and GMock is

1. Based on xUnit Architecture and
2. Is portable and works on Linux, Mac, and Windows

Mocking (creating Mocks) helps us in simulating the behavior of interfaces which are intended to be used in the production code. By simulating these behaviors we can test our code to see how it responds to different outputs.

This video is part - 2 of using Google Mocks. you can find Part -1 here    • Google c++ Test Mocking Framework  Pa...  

This video details about the advanced usage of Google Mocks and covers the following topics.

1. Mocking a class without deriving from Base class
2. Invoking Real Base class implementations and other
3. implementations
4. Setting Default Actions
5. Calling Multiple Actions

Hope it helps you in learning something new.. enjoy!

#gmock #gtest #googletest #test #testing #testdrivendevelopment #tdd #mocks