rust-analyzer / expect-test

Minimalistic snapshot testing for Rust.
Apache License 2.0
248 stars 22 forks source link

Use 'CARGO_WORKSPACE_DIR' if present, closes #33 #34

Closed fasterthanlime closed 2 years ago

fasterthanlime commented 2 years ago

Will test that out on https://github.com/rust-lang/rust/pull/99444 before taking it out of draft.

fasterthanlime commented 2 years ago

This works well enough to resolve the problems we saw in https://github.com/rust-lang/rust/pull/99444

using this PR, when adding an env section to rust-analyzer's .cargo/config.toml, all tests pass from within the rust repo
fasterthanlime commented 2 years ago

Can you bump the crate version in the Cargo.toml? CI will auto-publish the version when we merge it then. And a small CHANGELOG.md entry would be nice as well :)

Done!