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.
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