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

Fix unit test code coverage generation #811

Merged

Conversation

mwperina
Copy link
Member

@mwperina mwperina commented Mar 7, 2024

Because we are setting -fprofile_dir during the build with code coverage
support, we cannot use code coverage report generation built into meson,
because generate gcda files are on different path. So we need to
generate unit test code coverage report manually.

Fixes: #803
Fixes: #804
Fixes: #807
Signed-off-by: Martin Perina mperina@redhat.com

Because we are setting -fprofile_dir during the build with code coverage
support, we cannot use code coverage report generation built into meson,
because generate gcda files are on different path. So we need to
generate unit test code coverage report manually.

Fixes: eclipse-bluechi#803
Fixes: eclipse-bluechi#804
Fixes: eclipse-bluechi#807
Signed-off-by: Martin Perina <mperina@redhat.com>
@mwperina mwperina force-pushed the fix-unit-test-code-coverage-report branch from f6bfe40 to d3fa747 Compare March 7, 2024 19:44
@coveralls
Copy link

coveralls commented Mar 7, 2024

Coverage Status

coverage: 79.002% (+0.7%) from 78.269%
when pulling d3fa747 on mwperina:fix-unit-test-code-coverage-report
into d524dc3 on eclipse-bluechi:main.

@engelmi engelmi merged commit 9442501 into eclipse-bluechi:main Mar 8, 2024
20 checks passed
@mwperina mwperina deleted the fix-unit-test-code-coverage-report branch March 8, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants