-
Course
- Core Tech
Advanced C++ Mocking Using Google Mock 1
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.
What you'll learn
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.
Table of contents
- Version Check | 14s
- Course Introduction | 1m 14s
- Who Is This Course For? | 1m 36s
- Course Overview | 2m 13s
- Introducing Google Test | 3m 48s
- Understanding Real-world Unit Testing Issues | 4m 35s
- Introducing Google Mock | 2m 59s
- Getting Started with GTest and GMock | 1m 46s
- Demo: Getting Started with GTest | 4m 25s
- Writing Tests Using GTest | 1m
- An Overview of the Sample Project | 50s
- Demo: Unit Testing with GTest | 2m 9s
- Summary | 1m 5s
About the author
Dror is a Software developer, architect, and consultant who likes to help software developers write better code. He's a public speaker and blogger. Dror teaches, mentors, and writes code using clean code principles, TDD, and BDD.
More Courses by Dror