Skip to content

rust: Add rust tests to bazelisk#752

Open
willbeason wants to merge 6 commits intogoogle:mainfrom
willbeason:perf-rust-1
Open

rust: Add rust tests to bazelisk#752
willbeason wants to merge 6 commits intogoogle:mainfrom
willbeason:perf-rust-1

Conversation

@willbeason
Copy link
Contributor

Previously running bazelisk test ...:all did not run Rust tests. This change configures crate in MODULE.bazel.

Add rust/BUILD with minimal library and test configuration. I've copied the private visibility rules that other language's BUILD files use, let me know if we don't want that.

I modified the CSVReader used in testing to:

  1. Detect if it's being run with "cargo test" or "bazelisk test", and use the appropriate test data directory.
  2. Return helpful errors if it is unable to find the test data CSV.

I'm not super confident in how idiomatic this rust code is, main bit was to help me while debugging why bazelisk test wasn't working.

@willbeason willbeason changed the title Add rust tests to bazelisk rust: Add rust tests to bazelisk Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant