Test PRs for unit test coverage regression#210
Conversation
Unit Test Coverage ReportCoverage Regression Summary
Find details on the base coverage at https://iupac-inchi.github.io/InChI/coverage/index.html Find details on this PR's coverage by downloading coverage-reports-25304520901 and opening html/index.html |
There was a problem hiding this comment.
Pull request overview
Adds a CI workflow to compute C unit test coverage on pull requests and publish the results back to the PR and build artifacts.
Changes:
- Install
lcovas part of the build dependencies. - Add a new GitHub Actions workflow that builds with coverage flags, runs unit tests, generates an HTML coverage report, uploads it as an artifact, and posts a sticky PR comment/job summary.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
INCHI-1-TEST/install_build_dependencies.sh |
Adds lcov to the dependency install script so coverage tooling is available in CI/devcontainer flows. |
.github/workflows/compute_unit_test_coverage.yml |
New PR workflow to build with coverage enabled, generate/upload coverage reports, and post results to the PR. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0290f66 to
a93e2a0
Compare
a93e2a0 to
504e1ff
Compare
504e1ff to
f7f9de4
Compare
c43dd48 to
4a81ee7
Compare
f7f9de4 to
6afb052
Compare
6afb052 to
2feec8c
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b4a7439 to
05c602e
Compare
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
This PR addresses #203.
For every PR against the
devbranch the workflow.github/workflows/test_coverage_regression.ymlcompares the PR's unit test coverage with the coverage of thedevbranch (https://iupac-inchi.github.io/InChI/coverage/summary.txt). The latter is computed on every push todev(see .github/workflows/deploy_pages.yml). The.github/workflows/test_coverage_regression.ymlworkflow fails every PR who's coverage falls below thedevcoverage.