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 21 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 92.90780% with 10 lines in your changes missing coverage. Please review.

Project coverage is 94.06%. Comparing base (492795a) to head (31a8054).

Files Patch % Lines
gcovr/formats/gcov/read.py 91.75% 4 Missing and 4 partials ⚠️
gcovr/formats/html/write.py 89.47% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #766      +/-   ##
==========================================
- Coverage   94.69%   94.06%   -0.64%     
==========================================
  Files          50       50              
  Lines        3962     4058      +96     
  Branches      841      871      +30     
==========================================
+ Hits         3752     3817      +65     
- Misses        130      154      +24     
- Partials       80       87       +7     

☔ 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

???

@Spacetown Spacetown force-pushed the read_gcov_json_format branch 2 times, most recently from 5dda5b6 to a3e4daa Compare June 4, 2024 21:05
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