Honor runner configuration for sub-crates in workspaces #12147
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
When I have a workspace and one of the crates defines a custom test runner, this test runner is not used when running
cargo test
from the workspace root, only when executing it from the sub-crate itself. E.g.,In some weird way this seems to be yet another instance of #8870 (which I am still battling...)
Proposed Solution
Please: honor the logical configuration for the respective crate for which tests are run.
In the example above, I expect
cargo test
to fail forcrate2
even if run from the workspace root.Notes
I classified this issue as a feature request because as per #8870 it can probably be argued that this is "by design" (and not a bug). Yet, this design is most certainly questionable, in my opinion.
The text was updated successfully, but these errors were encountered: