We may earn an affiliate commission when you visit our partners.
Dror Helper

Writing unit tests is not trivial. In this course, you'll learn how to succeed using a powerful tool, Google Mock. It has become the standard mocking framework for C++ developers who want to write high quality code faster.

Read more

Writing unit tests is not trivial. In this course, you'll learn how to succeed using a powerful tool, Google Mock. It has become the standard mocking framework for C++ developers who want to write high quality code faster.

Writing unit tests looks simple in blogs, books, and tutorials. However, it can be quite difficult when attempted in the real world where real code has dependencies that make unit testing difficult. The solution is to isolate unit tests using mocks, stubs, and fakes. Using mocks is crucial for any developer who attempts to unit test his code. In this course, Advanced C++ Mocking Using Google Mock, you'll learn how to fake dependencies in C++ using Google Mock. First, you'll learn about how to make unit tests simpler and more predictable using mocks. Next, you'll explore how to run Google Mock with different unit testing frameworks, and cover mocking frameworks best practices. Finally, you'll learn useful unit testing patterns for existing legacy code. By the end of this course, you'll have a working knowledge of mocking frameworks and Google Mock, and you'll be able to efficiently unit test any code.

Now known as the Googletest Mocking Framework, Google Mock is the standard mocking framework for C++ developers.

gMock is used for creating fake objects in order to remove external dependencies for effective testing.

The latest

is found on Google's Open Source site.

This course is for C++ developers but can also be applied to testing in other objective-oriented languages like Java or C#.

This course will teach you how to use Googletest and the Google Mock Framework.

Enroll now

What's inside

Syllabus

Course Overview
Getting Started
Unit Testing with Google Test
Creating Fake Objects
Read more
Setting Fake Object's Behavior
Verifying Behavior
Using Arguments and Matchers
Getting Your Legacy Code Under Control

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Demystifies the practice of unit testing through Google Mock, which facilitates efficient and faster code development
Exploration of the nuts and bolts of Google Mock to conquer the challenges of real-world unit testing
Provides a practical approach to isolating unit tests using Google Mock
An effective solution for C++ developers seeking high-quality and efficient testing practices
Offers strategies for testing legacy code seamlessly
Includes hands-on demos and exercises to reinforce the concepts learned

Save this course

Save Advanced C++ Mocking Using Google Mock 1 to your list so you can find it easily later:
Save

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Advanced C++ Mocking Using Google Mock 1 with these activities:
Refresh C++ Mocking
Refresh your past experience with C++ Mocking before beginning this course.
Browse courses on Mocking
Show steps
  • Review your notes or past coursework that covers C++ Mocking
  • Take an online quiz or practice questions on C++ Mocking
Google Mock Tutorial
Supplement your learning by following a Google Mock tutorial.
Browse courses on Unit Testing
Show steps
  • Search for a Google Mock tutorial that aligns with your experience level
  • Follow the steps outlined in the tutorial and complete any suggested coding exercises
Volunteer in a Software Development Project
Apply your skills to real-world projects by volunteering in a software development project.
Browse courses on Software Development
Show steps
  • Search for volunteer opportunities in open-source projects or non-profit organizations that use C++
  • Reach out to the project leads or managers and inquire about volunteering opportunities
  • Identify a project or task that aligns with your skills and interests
  • Contribute to the project by applying C++ Mocking techniques
  • Seek feedback and guidance from experienced developers on the project
Two other activities
Expand to see all activities and additional details
Show all five activities
Hackathon or Coding Competition
Put your skills to the test in a hackathon or coding competition.
Show steps
  • Search for hackathons or coding competitions that focus on C++ development
  • Form a team or participate individually
  • Develop a project or solution that incorporates C++ Mocking techniques
  • Present your project and compete against other teams
  • Receive feedback and learn from the experience
Contribute to Google Mock
Enhance your understanding by contributing to the Google Mock open-source project.
Show steps
  • Familiarize yourself with the Google Mock codebase and documentation
  • Identify areas where you can contribute, such as bug fixes or feature enhancements
  • Submit pull requests to the Google Mock repository
  • Collaborate with other contributors and maintainers
  • Receive feedback and guidance from the Google Mock team

Career center

Learners who complete Advanced C++ Mocking Using Google Mock 1 will develop knowledge and skills that may be useful to these careers:
Test Engineer
Test Engineers will gain expertise in mocking dependencies and testing object-oriented code using Google Mock. Unit testing is a crucial part of the software development process.
Software Engineer
Software Engineers will gain expertise in mocking dependencies and testing object-oriented code using Google Mock. This can be very useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
Software Developer
Software Developers will gain expertise in mocking dependencies and testing object-oriented code using Google Mock. This can be very useful in understanding how to build and maintain software at scale.
Quality Assurance Analyst
Quality Assurance Analysts will gain expertise in mocking dependencies and testing object-oriented code using Google Mock. Unit testing is a crucial part of the software development process.
Technical Lead
Technical Leads may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
Software Architect
Software Architects may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
Engineering Manager
Engineering Managers may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
Project Manager
Project Managers may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
Product Manager
Product Managers may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
Machine Learning Engineer
Machine Learning Engineers may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
Data Scientist
Data Scientists may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
Data Analyst
Data Analysts may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
Business Analyst
Business Analysts may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
UX Designer
UX Designers may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.
UI Designer
UI Designers may find this course useful in understanding how to build and maintain software at scale. Unit testing is a crucial part of the software development process.

Reading list

We've selected nine books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Advanced C++ Mocking Using Google Mock 1.
Comprehensive resource for writing unit tests for application code. It provides practical advice and a discussion of various unit testing frameworks and utilities.
Provides practical patterns for writing maintainable and effective unit tests.
Covers principles for writing tests that fail first, and then are made to pass. It also illustrates the types of tests that should be written, how to organize tests, and how to write tests against legacy code.
Focuses on advanced Googletest and Google Mock techniques, discussing memory management, testing exceptions and singletons, using inheritance, working with templates and macros, adding coverage with gcov and LCOV, and more.
This official guide from Google provides detailed documentation on Google Test, including its features, usage, and best practices, and serves as a valuable reference for anyone using Google Test for C++ testing.
Covers the techniques and principles behind effective unit testing, including how to write clear and concise tests.
A concise but comprehensive guide to writing clean, well-structured code that is easy to read, understand, and maintain, which is essential for successful unit testing.
Provides a collection of best practices and guidelines for writing effective and efficient C++ code, covering topics such as object-oriented design, resource management, and error handling, and can serve as a valuable reference for C++ developers.
Provides a collection of practical recipes and solutions for common problems in C++ development, including topics such as memory management, concurrency, and debugging, and can be a useful reference for C++ developers of all levels.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to Advanced C++ Mocking Using Google Mock 1.
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2024 OpenCourser