-
Couldn't load subscription status.
- Fork 400
Closed
Labels
A-cargoArea: affects the cargo wrapper (cargo miri)Area: affects the cargo wrapper (cargo miri)C-bugCategory: This is a bug.Category: This is a bug.
Description
cargo test compiles and runs only tests that aren't disabled via required-features = ["foo"] (or test = false) in Cargo.toml.
cargo miri test tries to compile and run all tests, resulting in either target `test_foo` in package `xyz` requires the features: `foo` or arbitrary errors from explicitly disabled tests.
A fix for this would probably check for the args --no-default-features --features="..." and --all-features, pass them to cargo_metadata::MetadataCommand, read Node::features, and then filter the targets returned by list_targets().
Metadata
Metadata
Assignees
Labels
A-cargoArea: affects the cargo wrapper (cargo miri)Area: affects the cargo wrapper (cargo miri)C-bugCategory: This is a bug.Category: This is a bug.