Skip to content

fix(test): add [workspace] table to rust_workspace fixture Cargo.toml#120

Merged
bug-ops merged 1 commit into
mainfrom
118-fixture-workspace-e2e-tests
Apr 29, 2026
Merged

fix(test): add [workspace] table to rust_workspace fixture Cargo.toml#120
bug-ops merged 1 commit into
mainfrom
118-fixture-workspace-e2e-tests

Conversation

@bug-ops

@bug-ops bug-ops commented Apr 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds an empty [workspace] table to crates/mcpls-core/tests/fixtures/rust_workspace/Cargo.toml
  • Without it, cargo treats the fixture as a member of the parent workspace (members = ["crates/*"]), which excludes the fixture path, causing rust-analyzer to emit "Failed to load workspaces."

Test plan

  • cargo nextest run --workspace --all-features --lib --bins — all 345 tests pass
  • cargo nextest run --workspace --all-features --test integration_tests -- --ignored with rust-analyzer in PATH — 8 previously failing tests should now pass

Closes #118

Without [workspace], cargo treats the fixture as a member of the parent
workspace (members = ["crates/*"]), which excludes it, causing
rust-analyzer to emit "Failed to load workspaces." and 8 integration
tests to return null/empty results.

Closes #118
@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes testing Test-related changes mcpls-core mcpls-core crate changes labels Apr 29, 2026
@bug-ops bug-ops enabled auto-merge (squash) April 29, 2026 14:50
@bug-ops bug-ops merged commit 6350d43 into main Apr 29, 2026
27 checks passed
@bug-ops bug-ops deleted the 118-fixture-workspace-e2e-tests branch April 29, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation mcpls-core mcpls-core crate changes rust Rust code changes testing Test-related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

integration tests: 8 rust-analyzer tests fail with "Failed to load workspaces." — fixture Cargo.toml missing [workspace] table

1 participant