Skip to content

Return exit code to collect test coverage#2839

Merged
197g merged 2 commits intoimage-rs:mainfrom
RunDevelopment:test-exit-if-failed
Mar 11, 2026
Merged

Return exit code to collect test coverage#2839
197g merged 2 commits intoimage-rs:mainfrom
RunDevelopment:test-exit-if-failed

Conversation

@RunDevelopment
Copy link
Member

cargo-llvm-cov cannot write coverage data on Windows when using .exit(). See LukasKalbertodt/libtest-mimic#39.

In this PR, I changed it to .exit_if_failed(). This allows LLVM cov to report coverage, fixing the issue.

@RunDevelopment RunDevelopment changed the title Use exit_if_failed to collect test coverage Return exit code to collect test coverage Mar 11, 2026
@197g 197g merged commit ae2fbe6 into image-rs:main Mar 11, 2026
31 checks passed
@RunDevelopment RunDevelopment deleted the test-exit-if-failed branch March 11, 2026 00:38
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.

3 participants