Google Test and Mock Platform, Complete Tutorial. Part 1: Google Test
This is a complete tutorial on Google Test (GTest) and Google Mock (GMock) for writing unit tests in C++. This is the first video in the video series. Watch Part 2 of this video on GMock Matchers here: https://youtu.be/sfJobi4b_pw Watch Part 3 of this video on mocking classes with GMock here: https://youtu.be/vxCH4AuVRgo In this video, we will cover the following topics: - Introduction 00:00 - What is a unit test? 02:22 - Why a test platform is needed? 04:01 - Accompanying repo: 06:42 - Our first C++ unit test 7:32 - Google Test Assertion Macros 12:09 - Test Fixtures in GTest 22:17 - Manipulating, Filtering, and skipping tests 27:29 - Customizing GTest Output 30:06 - Sharing Test Logic: 32:35 - Parameterized Tests: 35:59 - Typed Test: 50:57 - Type-Parameterized Test: 55:58 - Testing Private Code: 58.46 - Assertion in Subroutines: 59:56 - Command line arguments: 1:01:47 Let me know if you have any questions in the comments! ----------------------------------------------------- - Link to the repo used in this video: https://github.com/ourarash/cpp-template. - A video describing how to use this repo: https://youtu.be/JfOzsBi_irY ----------------------------------------------------- See my other videos on: - How to use Google Benchmark for C++ Programs: https://youtu.be/9VKR8u9odrA - Bazel and unit tests with GTest: https://youtu.be/0wMNtl2xDT0 - Debugging in Visual Studio Code for C++: https://youtu.be/-TUogVOs1Qg - Visual Studio Code, Top Features: https://youtu.be/HebtiBI56kk ----------------------------------------------------- Keep in touch with me: https://www.linkedin.com/in/ourarash/ https://www.instagram.com/ourarash I'm the founder of BitcoinCrazyness app, the Most Advanced Cryptocurrency mobile APP for alerts, Check it out: http://www.bitcoincrazyness.com/
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.