You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m working on Rust integration tests using Bazel with rules_rust. I want my tests to read some test data files at runtime, and ideally, they should also work when running via cargo test.
I’ve seen references to a runfiles crate, but the documentation is scarce and a bit confusing. Specifically:
How do I properly use Runfiles in a Rust test under Bazel?
Do I need to add anything to Cargo.toml or the BUILD.bazel file?
How can I make the test code compatible with both Bazel and Cargo?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m working on Rust integration tests using Bazel with rules_rust. I want my tests to read some test data files at runtime, and ideally, they should also work when running via cargo test.
I’ve seen references to a runfiles crate, but the documentation is scarce and a bit confusing. Specifically:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions