Tag

GTest

1 views collected around this technical thread.

DaTaobao Tech
DaTaobao Tech
Aug 4, 2022 · Fundamentals

Practical C++ Unit Testing Practices and Lessons Learned

The article details a large‑scale C++ team's unit‑testing workflow, explaining why tests matter, how they set up cross‑platform macOS/Linux environments, adopt Google gtest/gmock with a custom Frida‑based mock, enforce coverage via gcov/lcov, compute incremental coverage, integrate Valgrind, follow deterministic test design principles, avoid common pitfalls, and embed the stable pipeline into CI gates and notifications.

CCode CoverageGTest
0 likes · 12 min read
Practical C++ Unit Testing Practices and Lessons Learned
Amap Tech
Amap Tech
Jan 8, 2021 · Backend Development

Applying Test‑Driven Development and GTest for Unit Testing in Gaode’s Navigation Service

Gaode’s navigation service adopted test‑driven development using Google’s GTest to replace slow diff‑based checks with fast, lightweight unit tests, enabling incremental refactoring of legacy code, improving quality, handling data‑dependency challenges, and demonstrating that writing tests first clarifies requirements while adding minimal overhead.

Backend DevelopmentCGTest
0 likes · 9 min read
Applying Test‑Driven Development and GTest for Unit Testing in Gaode’s Navigation Service