Disclosure: when you buy through links on our site, we may earn an affiliate commission.

C++ Unit Testing: Google Test and Google Mock

Beginning Test Driven Development (TDD) in C++ with Googletest and Googlemock
(508 reviews)
2,700 students
Created by


CourseMarks Score®







Platform: Udemy
Video: 3h 27m
Language: English
Next start: On Demand

Table of contents


This course is for software developers and students who want to be better programmers by writing more solid, bug-free code using the Google Test framework.
Your code will get better and you will have more confidence that your code is correct, because you will catch more bugs using automated tests.
How many times did this happen to you? You wrote new code, and after your hard work is done, you find that you broke features that used to work? And you had to waste more hours finding and fixing the bugs… This problem can get solved in most cases by using automated tests, especially unit tests.
No experience with automated testing is required. Very basic C++ knowledge is needed, nothing too sophisticated.
If you are completely new to Google Test, this course is just for you! If you already have some knowledge, look at the course content and see if you find some more advanced features that you didn’t know about.
Google Test works on multiple platforms. You can use any platform you like. In this course, I am doing it on:
•Windows (Visual Studio)
•Linux (CMake or compiling directly from the command line)
•Other platforms will be added if you suggest them to me
There are slides and hands-on coding examples in each section. I recommend that you try the examples and play around with them.
Here’s a brief presentation of the course content:
•Optional videos: Setting up on Windows (Visual Studio) and on Linux (CMake and GCC)
•Basics of unit testing:
•Unit test structure
•Assertions – numeric, string, exceptions
•Reusing code between tests (test fixtures, SetUp() and TearDown())
•Parameterized tests:  generate multiple tests by writing one single function.
•Mocking – replacing real objects with fakes that you can control):
•Setting the behaviour of mocks

You will learn

✓ Google Test (C++ Unit Testing)
✓ Google Mock


• Basic C++
• No unit testing experience is required

This course is for

• Software developers and students who want to make their code more robust, bug-free
• Anyone interested in Google Test and Google Mock

How much does the C++ Unit Testing: Google Test and Google Mock course cost? Is it worth it?

The course costs $17.99. And currently there is a 80% discount on the original price of the course, which was $89.99. So you save $72 if you enroll the course now.
The average price is $22.9 of 115 C++ courses. So this course is 21% cheaper than the average C++ course on Udemy.

Does the C++ Unit Testing: Google Test and Google Mock course have a money back guarantee or refund policy?

YES, C++ Unit Testing: Google Test and Google Mock has a 30-day money back guarantee. The 30-day refund policy is designed to allow students to study without risk.

Are there any SCHOLARSHIPS for this course?

Currently we could not find a scholarship for the C++ Unit Testing: Google Test and Google Mock course, but there is a $72 discount from the original price ($89.99). So the current price is just $17.99.

Who is the instructor? Is Serban Stoenescu a SCAM or a TRUSTED instructor?

Serban Stoenescu has created 3 courses that got 568 reviews which are generally positive. Serban Stoenescu has taught 8,725 students and received a 4.2 average review out of 568 reviews. Depending on the information available, Serban Stoenescu is a TRUSTED instructor.
Software Development Engineer
I am a passionate software developer. I’ve been a professional programmer for 9 years now.
In one of my previous jobs, I also worked as a trainer for new recruits.
Co-author of a research paper (2014): Towards the Impact of Design Flaws on the Resources Used by an Application.
My top languages are C++ and Java.
Browse all courses by on Coursemarks.
Platform: Udemy
Video: 3h 27m
Language: English
Next start: On Demand

Students are also interested in