Open wmcrobertsq opened 11 months ago
I'm having the same issue, my workaround is using rust_binary
with the test arg.
rust_binary(
name = "integration_tests",
srcs = glob(["tests/**/*.rs"]),
rustc_flags = ["--test"],
deps = [":lib"],
)
In attempting to get a simple
rust_test_suite
target running, I think I am seeing that it does not support the design pattern for including common functionality as detailed here in the Rust Book submodules-in-integration-tests.Specifically, when placing common code into
common/mod.rs
and referencing the common functionality in the root level integration tests, I am getting the following error message:I am now attempting to see if the
kwargs
parameter forrust_test_suite
can help here and will report back. I will also do a sanity check on multiplerust_test
setups to accomplish same.Does anyone have any additional insights to this issue?