Advanced C++ Mocking Using Google Mock 1
Offered By: Pluralsight
Course Description
Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to use Googletest and the Google Mock Framework for testing C++ projects.
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.
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.
Syllabus
- Course Overview 1min
- Getting Started 28mins
- Unit Testing with Google Test 50mins
- Creating Fake Objects 27mins
- Setting Fake Object's Behavior 29mins
- Verifying Behavior 28mins
- Using Arguments and Matchers 33mins
- Getting Your Legacy Code Under Control 30mins
Taught by
Dror Helper
Related Courses
Chef - The Local Cookbook Development BadgeA Cloud Guru Ruby: Testing with RSpec
LinkedIn Learning Software Development Explained
Pluralsight Intermediate Selenium WebDriver Course (How To)
Treehouse Mocking C++
CppNow via YouTube