<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Coverage on 公众号「沈显鹏」</title><link>https://shenxianpeng.dev/tags/coverage/</link><description>Recent content in Coverage on 公众号「沈显鹏」</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>xianpeng.shen@gmail.com (沈显鹏)</managingEditor><webMaster>xianpeng.shen@gmail.com (沈显鹏)</webMaster><copyright>Copyright © 2017–2026 Xianpeng Shen. All rights reserved.</copyright><lastBuildDate>Tue, 07 Sep 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://shenxianpeng.dev/tags/coverage/index.xml" rel="self" type="application/rss+xml"/><item><title>运行 lcov 报错 "Can't locate JSON/PP.pm in @INC ..."</title><link>https://shenxianpeng.dev/posts/2021/lcov-error/</link><pubDate>Tue, 07 Sep 2021 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/posts/2021/lcov-error/</guid><description>本文介绍在运行 lcov 生成代码覆盖率报告时遇到 &amp;ldquo;Can&amp;rsquo;t locate JSON/PP.pm in @INC &amp;hellip;&amp;rdquo; 等 Perl 模块缺失错误的解决方法，包括安装缺失的 Perl 模块。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/posts/2021/lcov-error/featured.jpg"/></item><item><title>使用 Gcov 和 LCOV 做 C/C++ 项目的代码覆盖率</title><link>https://shenxianpeng.dev/posts/2021/gcov-example/</link><pubDate>Tue, 17 Aug 2021 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/posts/2021/gcov-example/</guid><description>本文介绍了如何使用 Gcov 和 LCOV 对 C/C++ 项目进行代码覆盖率的度量，包括编译、运行和生成报告的步骤。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/posts/2021/gcov-example/featured.jpg"/></item><item><title>修复 "hidden symbol `__gcov_init' in ../libgcov.a(_gcov.o) is referenced by DSO" 错误</title><link>https://shenxianpeng.dev/posts/2021/how-to-fix-gcov-hidden-symbol/</link><pubDate>Tue, 27 Jul 2021 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/posts/2021/how-to-fix-gcov-hidden-symbol/</guid><description>本文介绍在使用 Gcov 编译项目进行代码覆盖率统计时，出现 &amp;ldquo;hidden symbol `__gcov_init&amp;rsquo;&amp;hellip;&amp;rdquo; 等错误的原因及解决方法，包括如何在构建时确保符号不被隐藏。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/posts/2021/how-to-fix-gcov-hidden-symbol/featured.jpg"/></item><item><title>关于代码覆盖率 (About Code Coverage)</title><link>https://shenxianpeng.dev/posts/2021/code-coverage/</link><pubDate>Wed, 14 Jul 2021 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/posts/2021/code-coverage/</guid><description>本文简要介绍了代码覆盖率的概念、重要性、常见指标、工作原理以及主流工具，强调了不要过度依赖代码覆盖率指标。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/posts/2021/code-coverage/featured.jpg"/></item><item><title>JaCoCo 代码覆盖率实践分享</title><link>https://shenxianpeng.dev/posts/2021/jacoco-imp/</link><pubDate>Tue, 06 Apr 2021 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/posts/2021/jacoco-imp/</guid><description>本文介绍了 JaCoCo 的使用方法，包括 Gradle 配置、执行测试生成报告、报告参数说明以及如何忽略指定的包或类影响测试覆盖率结果。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/posts/2021/jacoco-imp/featured.jpg"/></item><item><title>JaCoCo 实现原理 (JaCoCo Implementation Design)</title><link>https://shenxianpeng.dev/posts/2020/jacoco/</link><pubDate>Tue, 17 Nov 2020 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/posts/2020/jacoco/</guid><description>介绍 JaCoCo 的实现设计，包括覆盖率分析机制、Java 版本要求、字节码操纵、内存使用等方面的内容。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/posts/2020/jacoco/featured.jpg"/></item><item><title>C/C++ 代码覆盖率工具</title><link>https://shenxianpeng.dev/posts/2019/code-coverage-tools/</link><pubDate>Tue, 21 May 2019 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/posts/2019/code-coverage-tools/</guid><description>代码覆盖率衡量自动化测试覆盖的代码行、语句或代码块的比例，是评估 QA 质量的重要指标。本文列出了常见的 C/C++ 代码覆盖率工具及其特性。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/posts/2019/code-coverage-tools/featured.jpg"/></item><item><title>代码覆盖率工具 Squish Coco 使用示例</title><link>https://shenxianpeng.dev/posts/2019/squishcoco/</link><pubDate>Tue, 21 May 2019 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/posts/2019/squishcoco/</guid><description>介绍代码覆盖率工具 Squish Coco，并展示在 Visual Studio C++ 项目中如何安装、配置、执行和查看覆盖率结果。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/posts/2019/squishcoco/featured.jpg"/></item></channel></rss>