Skip to content

Add integration tests with rust-analyzer #36

@ethowitz

Description

@ethowitz

I'd love to add integration tests that somehow exercise the integration points with rust-analyzer. I'm thinking something like:

  • Invoke the rust-analyzer binary with a configuration that points to cargo-subspace for workspace discovery and flycheck
  • Send the appropriate LSP request to rust-analyzer to "open a file," which should prompt it to invoke cargo-subspace
  • Assert that cargo-subspace was invoked with the correct arguments
  • Assert that rust-analyzer accepted our JSON output (maybe by checking logs/stdout for errors? is it possible to inspect rust-analyzer's internal crate graph?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    testRelates to testing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions