Google Test and Mock Platform, Complete Tutorial. Part 1: Google Test

preview_player
Показать описание
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.

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!

-----------------------------------------------------
-----------------------------------------------------
See my other videos on:
-----------------------------------------------------
Keep in touch with me:

I'm the founder of BitcoinCrazyness app, the Most Advanced Cryptocurrency mobile APP for alerts, Check it out:

Рекомендации по теме
Комментарии
Автор

When I first got hired by Google, I had to write C++ unit tests and it took me a while to learn how to use the Google test platform effectively. This video series is a complete tutorial on GTest and GMock based on what I learned over the past few years. Please let me know if you have any questions or suggestions for my next videos!

arisaif
Автор

This series is much better than some paid courses. Thank you for sharing your knowledge.

mehmetrzaoz
Автор

You’re a rockstar my dude. These tutorials are amazingly good. Thank you so much. Im always so happy to see a fellow Persian online.

marcusterrel
Автор

Extremely well put together. I spent a whole month reading the googlemock documentation getting upto speed. But you explained it in such a concise and orderly fashion, making it seem so easy. Thank you so much Arash ! Best gtest, gmock tutorial on the web. Period.

SiddharthKarnam
Автор

the best gtest/gmock tutorial I've seen sofar, thx

WangNico-rs
Автор

The best and most complete explanation I've found on youtube so far. Thanks for sharing your expertise!

baqtronic
Автор

Extremely well put together and informative!

behshad
Автор

Best Google Test tutorial on YouTube imo.

kqtz
Автор

Just wanted to extend my thanks for making this video, it is very useful!

MrBoBiNaToR
Автор

Great! Thanks for the amazing tutorial. This is the best source among what I explored to learn Gtest

garapatianushadevi
Автор

Superb Video Ari. Thanks for for this teaching. Waiting for 3rd Video in this GTest series.

nitinmhetre
Автор

Explanations are very good.. thanks for the video

mekalakalyanasundaram
Автор

This is a really organized tutorial. Thanks!

motionsmoments
Автор

Hey Ari !! Glad to see you again. Can you please continue the Multi-threading series !! 🙂

kamalkrishnaroy
Автор

Great series! at 39:11 of this video, you create a map for the parameterized tests and I was wondering where this map would actually go, as in if I have my tests in a test.cpp file or something, would this map be created at the very top of the file so that it can be used? I'd appreciate any help. thanks.

mannynavarro
Автор

Great video! Super helpful to me. Thanks a lot!

wangcwy
Автор

can you also provide a basic series on google fuzztest? and the gtest and fuzztest integration. thanks

Ash-foqs
Автор

Dear @arisaif! Thank you for this 3part video series on Google test. It's awesome. This is my everyday programming tutorial and HELP GUIDE for a month already. Now, there is one small thing that bothers me all the time, when I watch your videos😋 How do you color gtest output in VSCODE terminal with Green and Red colors? Cause in my environment it's all the same color. It's so easier to read test results in your videos. That is when you run test suit, there is output in terminal like [ RUN ] [ OK] [ FAIL] [ PASSED ] [ FAILED ]. And you have painted it with green and red. And in VSCODE by default it's white. Thanks once again!

uchovovan
Автор

Thank you for sharing! Is mock actually shown in this one or will be in the follow up?

rude_broccoli
Автор

very helpful tutorial, can I get the slide presentation? thank you

caotoanbk