Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GCOV JSON intermediate format #766

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

Spacetown
Copy link
Member

GCOV introduced a JSON intermediate format with version 9.1.
If the gcov help contains the option --json-format this option is used to get compressed JSON files (.join.gz) instead of the human readable files (.gcov). The compressed JSON files are only used if the calls are excluded (default) because the call information isn't present in the JSON format yet.

Closes #282

@Spacetown Spacetown added Type: Enhancement Gcov Internal change Internal change not visible to user labels Apr 8, 2023
@Spacetown Spacetown added this to the Upcoming release milestone Apr 8, 2023
@Spacetown Spacetown marked this pull request as draft April 9, 2023 06:14
@codecov
Copy link

codecov bot commented Apr 9, 2023

Codecov Report

Attention: Patch coverage is 96.26168% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 94.42%. Comparing base (3e53c61) to head (e7d57c9).

Files Patch % Lines
gcovr/formats/gcov/read.py 95.87% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #766      +/-   ##
==========================================
- Coverage   94.65%   94.42%   -0.24%     
==========================================
  Files          50       50              
  Lines        3913     3997      +84     
  Branches      825      850      +25     
==========================================
+ Hits         3704     3774      +70     
- Misses        130      143      +13     
- Partials       79       80       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Spacetown Spacetown force-pushed the read_gcov_json_format branch 2 times, most recently from f131ed7 to 0941f68 Compare April 12, 2023 20:11
gcovr/formats/gcov/read.py Outdated Show resolved Hide resolved
@Spacetown Spacetown removed this from the Upcoming release milestone May 20, 2023
@Spacetown Spacetown added this to the WishList milestone Dec 12, 2023
@Spacetown Spacetown marked this pull request as ready for review May 11, 2024 19:24
@fanfeilong
Copy link

.gcov files are useable when debug

@Spacetown
Copy link
Member Author

.gcov files are useable when debug

???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gcov Internal change Internal change not visible to user Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support GCOV intermediate format
3 participants