feat(test): raise repository coverage gate to 90 percent#46
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
akiojin
added a commit
that referenced
this pull request
Mar 3, 2026
feat(test): raise repository coverage gate to 90 percent
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.
Summary
cargo llvm-covruns deterministic.Changes
src/main.rs: extractedrun_with_cliand added broad command-path tests, including text/json output branches and batch/instance flows.src/unityd.rsandsrc/lspd.rs: expanded daemon request/stream tests and stabilized unix socket helper behavior for reliable coverage execution.src/lsp.rs,src/local_tools.rs,src/lsp_manager.rs,src/transport.rs,src/instances.rs: added coverage-focused unit tests for parsing, helpers, request shaping, and error/fallback branches.src/test_env.rs: added a shared env-var lock used by test modules to avoid cross-test environment races..github/workflows/test.yml: enforced Rust coverage gate withcargo llvm-cov --all-targets --summary-only --fail-under-lines 90.docs/development.mdand.github/workflows/README.md: updated documented coverage commands and CI check descriptions.lsp/Server.Tests.csproj: added coverage package reference for C# test coverage enforcement.Testing
cargo test --all-targets— passes (130 passed, 0 failed).cargo llvm-cov --all-targets --summary-only— passes with total line coverage90.13%.cargo llvm-cov --all-targets --summary-only --fail-under-lines 90— passes (90.02%).Related Issues / Links
Checklist
cargo clippy,cargo fmt,svelte-check) —cargo fmtpassed;cargo clippy/svelte-checknot run in this task.Context
Notes
dotnetexecution was not performed in this environment.