本文主要是介绍GoogleTest测试框架-Gest和GMock,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在B站和油管上面找到涉及到GoogleTest单元测试框架的Gtest和Gmock的三个不错的视频资源:
油管视频链接:
- Google Test and Mock Platform, Complete Tutorial. Part 1: Google Test
- Google Test and Mock Platform - Part 2: GMock Matchers
- Google Test and Mock Platform - Part 3: Mocking Classes and Functions with GMock
对应的Github源码地址为: - C++ console application template using Bazel and googletest
B站视频链接
- Google Test and Mock Platform - Part 1_ Google Test
- Google Test and Mock Platform - Part 2_ GMock Matchers
- Google Test and Mock Platform - Part 3_ Mocking Classes and Function
GoogleTest官方链接:
GoogleTest is Google’s C++ testing and mocking framework. This user’s guide has the following contents:
- GoogleTest User’s Guide
- GoogleTest Primer - Teaches you how to write simple tests using GoogleTest. Read this first if you are new to GoogleTest.
- GoogleTest Advanced - Read this when you’ve finished the Primer and want to utilize GoogleTest to its full potential.
- GoogleTest Samples - Describes some GoogleTest samples.
- GoogleTest FAQ - Have a question? Want some tips? Check here first.
- Mocking for Dummies - Teaches you how to create mock objects and use them in tests.
- Mocking Cookbook - Includes tips and approaches to common mocking use cases.
- Mocking Cheat Sheet - A handy reference for matchers, actions, invariants, and more.
- Mocking FAQ - Contains answers to some mocking-specific questions.
- GoogleTest - Google Testing and Mocking Framework
这篇关于GoogleTest测试框架-Gest和GMock的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!