# GoogleTest.Tutorial **Repository Path**: hexu1985/GoogleTest.Tutorial ## Basic Information - **Project Name**: GoogleTest.Tutorial - **Description**: No description available - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-04-24 - **Last Updated**: 2025-07-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GoogleTest Tutorial ## Table of contents ### [Chapter1: 环境配置](chapter-01/README.md) - [1. googletest编译安装](chapter-01/recipe-01/README.md) - [2. 编译项目:手动指定链接gtest库](chapter-01/recipe-02/README.md) - [3. 编译项目:通过CMake的find_package](chapter-01/recipe-03/README.md) - [4. 编译项目:手动指定链接gtest库(使用gtest提供的main函数)](chapter-01/recipe-04/README.md) - [5. 编译项目:通过CMake的find_package(使用gtest提供的main函数)](chapter-01/recipe-05/README.md) ### [Chapter2: 使用断言](chapter-02/README.md) - [1. gtest断言简介](chapter-02/recipe-01/README.md) - [2. 布尔值和数值型断言](chapter-02/recipe-02/README.md) - [3. 字符串断言](chapter-02/recipe-03/README.md) - [4. 显式的(explicit)成功或失败](chapter-02/recipe-04/README.md) - [5. 异常断言](chapter-02/recipe-05/README.md) - [6. 谓词断言Predicate Assertions](chapter-02/recipe-06/README.md) - [7. 浮点型断言](chapter-02/recipe-07/README.md) - [8. 类型断言](chapter-02/recipe-08/README.md) ### [Chapter3: 事件机制](chapter-03/README.md) - [1. gtest事件机制简介](chapter-03/recipe-01/README.md) - [2. 全局事件](chapter-03/recipe-02/README.md) - [3. TestSuite事件](chapter-03/recipe-03/README.md) - [4. TestCase事件](chapter-03/recipe-04/README.md) ### [Chapter 4: 参数化](chapter-04/README.md) - [1. gtest参数化简介](chapter-04/recipe-01/README.md) - [2. 参数化测试](chapter-04/recipe-02/README.md) - [3. 类型参数化](chapter-04/recipe-03/README.md) ### [Chapter 5: 死亡测试](chapter-05/README.md) - [1. gtest死亡测试简介](chapter-05/recipe-01/README.md) - [2. \*\_DEATH(statement, regex)](chapter-05/recipe-02/README.md) - [3. \*\_EXIT(statement, predicate, regex)](chapter-05/recipe-03/README.md) - [4. \*\_DEBUG_DEATH(statement, predicate, regex)](chapter-05/recipe-04/README.md) - [5. 死亡测试运行方式](chapter-05/recipe-05/README.md) ### [Chapter 6: 运行参数](chapter-06/README.md) - [1. gtest运行参数简介](chapter-06/recipe-01/README.md) - [2. 运行参数列表](chapter-06/recipe-02/README.md) ### [Chapter 7: 测试覆盖率统计](chapter-07/README.md) - [1. 基于lcov统计测试覆盖率](chapter-07/recipe-01/README.md) - [2. 基于kcov统计测试覆盖率](chapter-07/recipe-02/README.md) ### 参考文档 - - ### 进阶文档推荐 - -