Add the code coverage job#55
Open
tian-lt wants to merge 5 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a dedicated code coverage build/test path and wires it into the existing CI pipeline so coverage reports can be generated and uploaded as artifacts.
Changes:
- Added CMake configure/build/test presets for coverage (hosted + freestanding).
- Introduced a reusable GitHub Actions workflow to run coverage-instrumented tests and generate a gcovr report.
- Hooked the new coverage workflow into the main CI pipeline.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
CMakePresets.json |
Adds coverage and coverage-freestanding configure/build/test presets to enable coverage-instrumented builds. |
.github/workflows/pipeline-ci.yml |
Invokes the new code coverage BVT workflow as an additional CI job. |
.github/workflows/bvt-codecoverage.yml |
New reusable workflow that builds/tests with coverage and uploads gcovr reports as an artifact. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a dedicated code coverage job to the CI pipeline. It builds the tests with GCC coverage instrumentation, runs both the hosted and freestanding test suites, generates a coverage report scoped to the public headers (
include/proxy/), publishes a summary to the workflow run page, and uploads the full report as an artifact.Samples