Skip to content

Refactor code coverage command in CI workflow#31

Merged
bashandbone merged 2 commits into
mainfrom
bashandbone-patch-1
Mar 18, 2026
Merged

Refactor code coverage command in CI workflow#31
bashandbone merged 2 commits into
mainfrom
bashandbone-patch-1

Conversation

@bashandbone

Copy link
Copy Markdown
Owner

This pull request updates the code coverage generation step in the CI workflow to exclude additional files and directories from coverage reports. This helps ensure that only relevant source code is measured for test coverage.

CI workflow improvements:

  • Updated the cargo llvm-cov command in .github/workflows/ci.yml to use the --ignore-filename-regex option, excluding files and directories such as hidden files, dev/, tests/, benches/, scripts/, and various file types (e.g., .toml, .md, .license) from coverage calculation.Refactor code coverage generation command for clarity and add filename ignore patterns.

Refactor code coverage generation command for clarity and add filename ignore patterns.
Copilot AI review requested due to automatic review settings March 18, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CI coverage step to refine what files are included in cargo llvm-cov coverage reporting, aiming to better reflect coverage of relevant Rust source.

Changes:

  • Refactors the cargo llvm-cov invocation into a multiline command for readability.
  • Adds --ignore-filename-regex patterns to exclude additional directories/files from coverage calculations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bashandbone bashandbone merged commit b6f2d32 into main Mar 18, 2026
6 of 7 checks passed
@bashandbone bashandbone deleted the bashandbone-patch-1 branch March 18, 2026 16:56
@codecov

codecov Bot commented Mar 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants