banner
yono

yono

哈喽~欢迎光临
follow
github

GTEST Literacy

Where to Start#

First, there is such a tutorial

Augustineqq0654/win-googletest: Setting up the googletest testing framework on Windows (github.com)

and the author's blog post

Setting up the googletest testing framework (C/C++) on Windows - Ziyaohua - Blog Garden (cnblogs.com)

The software tools involved are the same as those in CMAKE Basics, and we also use GTEST integrated into the CMAKE build workflow. Therefore, it is essential to learn CMAKE operations first before setting up the GTEST testing platform.

After pulling the code from the tutorial's GitHub open-source repository, you can follow the tutorial blog step by step to run the GTEST tests. Later, we will introduce how to conveniently add GTEST tests into our arm-gcc compilation flow.

The following introduction is entirely based on the project from CMAKE Basics.

Preparation Work#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.