ceedling-gcov
=============
# Plugin Overview
Plugin for integrating GNU GCov code coverage tool into Ceedling projects.
Currently only designed for the gcov command (like LCOV for example). In the
future we could configure this to work with other code coverage tools.
This plugin currently uses [gcovr](https://www.gcovr.com/) and / or
[ReportGenerator](https://danielpalme.github.io/ReportGenerator/)
as utilities to generate HTML, XML, JSON, or Text reports. The normal gcov
plugin _must_ be run first for these reports to generate.
## Installation
gcovr can be installed via pip like so:
```sh
pip install gcovr
```
ReportGenerator can be installed via .NET Core like so:
```sh
dotnet tool install -g dotnet-reportgenerator-globaltool
```
It is not required to install both `gcovr` and `ReportGenerator`. Either utility
may be installed to create reports.
## Configuration
The gcov plugin supports configuration options via your `project.yml` provided
by Ceedling.
### Utilities
Gcovr and / or ReportGenerator may be enabled to create coverage reports.
```yaml
:gcov:
:utilities:
- gcovr # Use gcovr to create the specified reports (default).
- ReportGenerator # Use ReportGenerator to create the specified reports.
```
### Reports
Various reports are available and may be enabled with the following
configuration item. See the specific report sections in this README
for additional options and information. All generated reports will be found in `build/artifacts/gcov`.
```yaml
:gcov:
# Specify one or more reports to generate.
# Defaults to HtmlBasic.
:reports:
# Make an HTML summary report.
# Supported utilities: gcovr, ReportGenerator
- HtmlBasic
# Make an HTML report with line by line coverage of each source file.
# Supported utilities: gcovr, ReportGenerator
- HtmlDetailed
# Make a Text report, which may be output to the console with gcovr or a file in both gcovr and ReportGenerator.
# Supported utilities: gcovr, ReportGenerator
- Text
# Make a Cobertura XML report.
# Supported utilities: gcovr, ReportGenerator
- Cobertura
# Make a SonarQube XML report.
# Supported utilities: gcovr, ReportGenerator
- SonarQube
# Make a JSON report.
# Supported utilities: gcovr
- JSON
# Make a detailed HTML report with CSS and JavaScript included in every HTML page. Useful for build servers.
# Supported utilities: ReportGenerator
- HtmlInline
# Make a detailed HTML report with a light theme and CSS and JavaScript included in every HTML page for Azure DevOps.
# Supported utilities: ReportGenerator
- HtmlInlineAzure
# Make a detailed HTML report with a dark theme and CSS and JavaScript included in every HTML page for Azure DevOps.
# Supported utilities: ReportGenerator
- HtmlInlineAzureDark
# Make a single HTML file containing a chart with historic coverage information.
# Supported utilities: ReportGenerator
- HtmlChart
# Make a detailed HTML report in a single file.
# Supported utilities: ReportGenerator
- MHtml
# Make SVG and PNG files that show line and / or branch coverage information.
# Supported utilities: ReportGenerator
- Badges
# Make a single CSV file containing coverage information per file.
# Supported utilities: ReportGenerator
- CsvSummary
# Make a single TEX file containing a summary for all files and detailed reports for each files.
# Supported utilities: ReportGenerator
- Latex
# Make a single TEX file containing a summary for all files.
# Supported utilities: ReportGenerator
- LatexSummary
# Make a single PNG file containing a chart with historic coverage information.
# Supported utilities: ReportGenerator
- PngChart
# Command line output interpreted by TeamCity.
# Supported utilities: ReportGenerator
- TeamCitySummary
# Make a text file in lcov format.
# Supported utilities: ReportGenerator
- lcov
# Make a XML file containing a summary for all classes and detailed reports for each class.
# Supported utilities: ReportGenerator
- Xml
# Make a single XML file containing a summary for all files.
# Supported utilities: ReportGenerator
- XmlSummary
```
### Gcovr HTML Reports
Generation of Gcovr HTML reports may be modified with the following configuration items.
```yaml
:gcov:
# Set to 'true' to enable HTML reports or set to 'false' to disable.
# Defaults to enabled. (gcovr --html)
# Deprecated - See the :reports: configuration option.
:html_report: [true|false]
# Gcovr supports generating two types of HTML reports. Use 'basic' to create
# an HTML report with only the overall file information. Use 'detailed' to create
# an HTML report with line by line coverage of each source file.
# Defaults to 'basic'. Set to 'detailed' for (gcovr --html-details).
# Deprecated - See the :reports: configuration option.
:html_report_type: [basic|detailed]
:gcovr:
# HTML report filename.
:html_artifact_filename: <output>
# Use 'title' as title for the HTML report.
# Default is 'Head'. (gcovr --html-title)
:html_title: <title>
# If the coverage is below MEDIUM, the value is marked as low coverage in the HTML report.
# MEDIUM has to be lower than or equal to value of html_high_threshold.
# If MEDIUM is equal to value of html_high_threshold the report has only high and low coverage.
# Default is 75.0. (gcovr --html-medium-threshold)
:html_medium_threshold: 75
# If the coverage is below HIGH, the value is marked as medium coverage in the HTML report.
# HIGH has to be greater than or equal to value of html_medium_threshold.
# If HIGH is equal to value of html_medium_threshold the report has only high and low coverage.
# Default is 90.0. (gcovr -html-high-threshold)
:html_high_threshold: 90
# Set to 'true' to use absolute paths to link the 'detailed' reports.
# Defaults to relative links. (gcovr --html-absolute-paths)
:html_absolute_paths: [true|false]
# Override the declared HTML report encoding. Defaults to UTF-8. (gcovr --html-encoding)
:html_encoding: <html_encoding>
```
### Cobertura XML Reports
Generation of Cobertura XML reports may be modified with the following configuration items.
```yaml
:gcov:
# Set to 'true' to enable Cobertura XML reports or set to 'false' to disable.
# Defaults to disabled. (gcovr --xml)
# Deprecated - See the :reports: configuration option.
:xml_report: [true|false]
:gcovr:
# Set to 'true' to pretty-print the Cobertura XML report, otherwise set to 'false'.
# Defaults to disabled. (gcovr --xml-pretty)
:xml_pretty: [true|false]
:cobertura_pretty: [true|false]
# Cobertura XML report filename.
:xml_artifact_filename: <output>
:cobertura_artifact_filename: <output>
```
### SonarQube XML Reports
Generation of SonarQube XML reports may be modified with the following configuration items.
```yaml
:gcov:
:gcovr:
# SonarQube XML report filename.
:sonarqube_artifact_filename: <output>
```
### JSON Reports
Generation of JSON reports may be modified with the following configuration items.
```yaml
:gcov:
:gcovr:
# Set to 'true' to pretty-print the JSON report, otherwise set 'false'.
# Defaults to disabled. (gcovr --json-pretty)
:json_pretty: [true|false]
# JSON report filename.
:json_artifact_filename: <output>
```
### Text Reports
Generation of text reports may be modified with the following configuration items.
Text reports may be printed to the console or output to a file.
```yaml
:gcov:
:gcovr:
# Text report filename.
# The text repo
没有合适的资源?快使用搜索试试~ 我知道了~
物联网嵌入式开发-ESP32通过USB口实现板载SD卡实现U盘功能(ESP-IDF +VSCode编程).rar
共1427个文件
h:423个
c:263个
mk:190个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 132 浏览量
2024-04-17
17:12:39
上传
评论 1
收藏 2.74MB RAR 举报
温馨提示
1、嵌入式物联网ESP32项目实战开发。例程经过精心编写,简单好用。 2、代码使用Visual Studio Code开发,C语言编程。例程在ESP32-S3上运行。若在其他型号上运行,请自行调整。 3、如果接入其他传感器,请查看发布的其他资料。 4、ESP32与模块的接线,在代码当中均有定义,请自行对照。 5、若硬件差异,请根据自身情况适当调整代码,程序仅供参考。 6、代码有注释说明,请耐心阅读。 7、技术v:349014857;
资源推荐
资源详情
资源评论
收起资源包目录
物联网嵌入式开发-ESP32通过USB口实现板载SD卡实现U盘功能(ESP-IDF +VSCode编程).rar (1427个子文件)
meson.build 324B
meson.build 292B
meson.build 283B
audio_device.c 96KB
unity.c 66KB
usbh.c 54KB
video_device.c 48KB
dcd_stm32_fsdev.c 46KB
usbd.c 45KB
dcd_dwc2.c 44KB
dcd_synopsys.c 43KB
dcd_da146xx.c 39KB
dcd_ft9xx.c 38KB
dcd_sunxi_musb.c 38KB
cdc_host.c 37KB
dcd_nrf5x.c 34KB
tusb_fifo.c 34KB
sltb009a.c 32KB
ehci.c 32KB
msc_device.c 31KB
usbtmc_device.c 31KB
dcd_esp32sx.c 30KB
dcd_musb.c 28KB
hcd_musb.c 27KB
dcd_rusb2.c 25KB
hcd_rusb2.c 24KB
ohci.c 24KB
dcd_samx7x.c 24KB
dcd_ci_hs.c 23KB
dcd_nuc505.c 23KB
system_gd32vf103.c 23KB
hid_host.c 22KB
lcd.c 22KB
system_ch32v30x.c 21KB
dcd_pic.c 21KB
dcd_pic32mz.c 21KB
dcd_msp430x5xx.c 20KB
dcd_lpc_ip3511.c 19KB
hcd_rp2040.c 19KB
hcd_khci.c 19KB
dcd_eptri.c 18KB
dcd_lpc17_40.c 18KB
dcd_rp2040.c 18KB
ncm_device.c 17KB
dcd_khci.c 17KB
dcd_nuc121.c 16KB
dcd_ci_fs.c 16KB
midi_device.c 16KB
msc_host.c 16KB
hub.c 16KB
msc_disk_dual.c 16KB
main.c 16KB
msc_app.c 16KB
dfu_device.c 15KB
clefia.c 15KB
dcd_nuc120.c 15KB
main.c 15KB
cdc_device.c 15KB
dcd_mm32f327x_otg.c 15KB
clock_config.c 15KB
dcd_samd.c 15KB
clock_config.c 14KB
ecm_rndis_device.c 14KB
rp2040_usb.c 14KB
dcd_samg.c 14KB
main.c 14KB
main.c 14KB
tusb.c 14KB
d5035_01.c 14KB
hal_gpio.c 13KB
main.c 13KB
hid_device.c 13KB
tusb_cdc_acm.c 13KB
dcd_usbhs.c 13KB
typec_stm32.c 12KB
rndis_reports.c 12KB
cdc_rndis_host.c 12KB
hid_app.c 11KB
dcd_cxd56.c 11KB
main.c 11KB
usb_descriptors.c 11KB
usb_descriptors.c 11KB
msc_disk.c 10KB
same54_xplained.c 10KB
dhserver.c 10KB
family.c 10KB
tud_sd.c 10KB
pca9532.c 10KB
msc_disk.c 10KB
family.c 10KB
msc_disk.c 10KB
usb_descriptors.c 10KB
bth_device.c 10KB
hid_app.c 10KB
usb_descriptors.c 10KB
test_fifo.c 10KB
usb_descriptors.c 10KB
ea4357.c 10KB
ngx4330.c 10KB
rx65n_target.c 9KB
共 1427 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
物联技术666
- 粉丝: 2616
- 资源: 839
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功