👉 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.
Mocks also help us in removing the external dependencies so that we can run our unit tests in isolation and check the desired functionality
This video covers the following topic in detail
1. What are Mocks ?
2. How Mocks are written using Google Mock i.e GMock
3. What is the difference between EXPECT_CALL and ON_CALL
Hope it helps you in learning something new.. enjoy!
#gmock #gtest #googletest #test #testing #testdrivendevelopment #tdd #mocks #stubs #testdoubles
Негізгі бет Google c++ Test Mocking Framework Part - 4: Writing Mocks using c++ gtest and c++ gmock
Пікірлер: 73