Tagged articles
1 articles
Page 1 of 1
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Jun 18, 2021 · Fundamentals

Implementing Unit Testing for the PC Teacher Desktop Application Using GoogleTest and Mocking

This article describes how the PC teacher desktop client adopts a layered MVL architecture, introduces unit testing with GoogleTest and GoogleMock, explains the underlying TEST and RUN_ALL_TESTS macro mechanisms, demonstrates mock view implementation, and shows how code coverage is measured to achieve targeted test coverage levels.

C++MockingSoftware Engineering
0 likes · 15 min read
Implementing Unit Testing for the PC Teacher Desktop Application Using GoogleTest and Mocking