Code coverage of the project #4054
nguoithichkhampha
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Can you share the HTML report? It would be interesting to see which functions are not called. |
Beta Was this translation helpful? Give feedback.
0 replies
-
coverage.zip |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to check code coverage if this repo.
![Screenshot from 2023-06-15 11-00-25](https://private-user-images.githubusercontent.com/1573602/245989927-5d552903-d942-4af4-a954-e8780f9598f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Njk1NjIsIm5iZiI6MTczOTQ2OTI2MiwicGF0aCI6Ii8xNTczNjAyLzI0NTk4OTkyNy01ZDU1MjkwMy1kOTQyLTRhZjQtYTk1NC1lODc4MGY5NTk4ZjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTc1NDIyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWUyMzk3MTRiYmVlZjQ5MzRlNWJhOWM4YjE4OGI3MzNkMjE2MTc1ZDM2NzQwN2ZjOTYyMzRmMWQ1NDlkNzAxYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.PZABlMOlSm1yXc_MQCrZRV1bIiI3wmcktGh4z9Ey8us)
line coverage is almost same but branch coverage is different and function coverage is quite low.
Can someone help me to explain
I build with this config
cmake -DCMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=ON -DCMAKE_CXX_FLAGS="--coverage" ../
and generate the report by gcovr
gcovr -r ../include/ . --exclude-noncode-lines -j5 --print-summary --html-details coverage/index.html --exclude-unreachable --exclude-throw-branches
Beta Was this translation helpful? Give feedback.
All reactions