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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gcovr output coverage rate does not match codecov reports rate #914

Closed
msclock opened this issue Apr 7, 2024 · 4 comments
Closed

Gcovr output coverage rate does not match codecov reports rate #914

msclock opened this issue Apr 7, 2024 · 4 comments

Comments

@msclock
Copy link

msclock commented Apr 7, 2024

I have tested it with output format xml or lcov. All result turns out console coverage rate 100% does not matche codecov report rates(67.74%). Here is my codecov report result:

image

Is there anything I have missed to get the matched results馃槙

This is my gcovr usage(coverage rate is 100%):

[5/6] cd /home/runner/work/ss-cpp/ss-cpp/out/build/x64-linux-gcc && /home/runner/cmake/cmake-3.28.1-linux-x86_64/bin/cmake -E rm -f /home/runner/work/ss-cpp/ss-cpp/out/build/x64-linux-gcc/code_coverage/coverage.xml && /opt/pipx_bin/gcovr --print-summary --xml-pretty --root /home/runner/work/ss-cpp/ss-cpp --exclude-noncode-lines --output /home/runner/work/ss-cpp/ss-cpp/out/build/x64-linux-gcc/code_coverage/coverage.xml --gcov-executable=/usr/bin/gcov --filter /home/runner/work/ss-cpp/ss-cpp/src --exclude out/build/x64-linux-gcc --exclude out/build/x64-linux-gcc/vcpkg_installed --exclude vcpkg --exclude ../../../../../usr --exclude ../../../../../opt --exclude ../../../../../opt/local
@msclock msclock changed the title Gcovr output coverage rate does not support codecov reports Gcovr output coverage rate does not match codecov reports rate Apr 7, 2024
@Spacetown
Copy link
Member

Instead of the coverage.xml the upload script executes gcov on it's own (see line 46) and uses this result.

@msclock
Copy link
Author

msclock commented Apr 8, 2024

Instead of the coverage.xml the upload script executes gcov on it's own (see line 46) and uses this result.

I remeber I have tested before and now I test it again with a non-existance plugin pycoverage here but still got the same mismatched result.

@Spacetown
Copy link
Member

In the link gcovr and codecov both report 100% line coverage. Where exact is the difference?

@msclock
Copy link
Author

msclock commented Apr 22, 2024

In the link gcovr and codecov both report 100% line coverage. Where exact is the difference?

in recent result seems it is caused by the branches coverage and I need to do more verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants