Skip to content

chore: show agents how to view test code coverage#5426

Merged
wjones127 merged 7 commits intolance-format:mainfrom
wjones127:docs-agents-code-coverage
Dec 9, 2025
Merged

chore: show agents how to view test code coverage#5426
wjones127 merged 7 commits intolance-format:mainfrom
wjones127:docs-agents-code-coverage

Conversation

@wjones127
Copy link
Copy Markdown
Contributor

Providing some scripts and instructions for how to view coverage. This is usable by coding agents, which should enable them to help us improve our test coverage.

@github-actions github-actions Bot added the chore label Dec 7, 2025
@wjones127 wjones127 force-pushed the docs-agents-code-coverage branch from ff941c5 to 3814872 Compare December 7, 2025 21:43
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wjones127 wjones127 marked this pull request as ready for review December 7, 2025 23:05
Comment thread AGENTS.md
/// # }
/// ```
```
* Code coverage can be skipped for test utilities and non-critical paths using
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there any way to just skip code coverage for anything in the test cfg? Or is that already done and this is for test utilities that are in main scope for some reason?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Doesn't seem like there's a particularly easy way. taiki-e/cargo-llvm-cov#123

But most of the time tests have their lines covered. It's just some edge cases like branches that only happen on test failures that get missed. I think that's okay.

@wjones127 wjones127 merged commit f557b9d into lance-format:main Dec 9, 2025
25 of 26 checks passed
@wjones127 wjones127 deleted the docs-agents-code-coverage branch December 9, 2025 05:39
wjones127 added a commit that referenced this pull request Dec 10, 2025
Get 100% line and branch coverage for
`rust/lance-core/src/utils/deletion.rs`. This is trying out scripts in
#5426.
jackye1995 pushed a commit to jackye1995/lance that referenced this pull request Jan 21, 2026
Providing some scripts and instructions for how to view coverage. This
is usable by coding agents, which should enable them to help us improve
our test coverage.
jackye1995 pushed a commit to jackye1995/lance that referenced this pull request Jan 21, 2026
Get 100% line and branch coverage for
`rust/lance-core/src/utils/deletion.rs`. This is trying out scripts in
lance-format#5426.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants