Tagged articles
5 articles
Page 1 of 1
DevOps Engineer
DevOps Engineer
Aug 23, 2021 · Fundamentals

Measuring Code Coverage for C/C++ Projects with Gcov and LCOV

This article explains how to measure code coverage for C/C++ projects using GCC's built‑in Gcov tool and the LCOV utility, covering prerequisite setup, compilation with profiling flags, running tests, generating .gcno/.gcda files, producing .gcov reports, creating HTML visualizations, and cautions against over‑relying on coverage percentages.

code coveragegcclcov
0 likes · 11 min read
Measuring Code Coverage for C/C++ Projects with Gcov and LCOV
Youzan Coder
Youzan Coder
Jan 6, 2020 · Mobile Development

Precise Mobile Testing Platform: iOS Code Coverage Instrumentation and Incremental Coverage Analysis

The article details Youzan Retail’s precise iOS testing platform, which instruments Objective‑C code via GCC/LLVM to generate .gcno/.gcda files, processes them with LCOV, and provides both full and git‑diff‑based incremental coverage visualizations across CI, data collection, parsing, and reporting layers to improve manual and automated test quality.

Instrumentationcode coveragegit diff
0 likes · 18 min read
Precise Mobile Testing Platform: iOS Code Coverage Instrumentation and Incremental Coverage Analysis
360 Quality & Efficiency
360 Quality & Efficiency
Sep 10, 2019 · Fundamentals

Practical Guide to C++ Code Coverage Testing with gcov and lcov

This article provides a step‑by‑step tutorial on performing C++ code‑coverage testing using gcov, covering compilation flags, running the instrumented program, generating gcov reports, and creating detailed HTML reports with lcov, including command examples and configuration details.

CSoftware Testingcode coverage
0 likes · 7 min read
Practical Guide to C++ Code Coverage Testing with gcov and lcov
Baidu Intelligent Testing
Baidu Intelligent Testing
Sep 12, 2017 · Fundamentals

Introduction to C/C++ Code Coverage Tools and Practices (BullseyeCoverage, gcov/lcov)

This article explains the concepts of code coverage, describes different coverage metrics such as statement, branch, and function coverage, introduces BullseyeCoverage and gcov/lcov tools, and provides detailed step‑by‑step procedures for measuring coverage in both executable binaries and dynamic libraries for C/C++ projects.

BullseyeCoveragecode coveragegcov
0 likes · 8 min read
Introduction to C/C++ Code Coverage Tools and Practices (BullseyeCoverage, gcov/lcov)