Ignoring --features
with -p
parameter when running tests
#4407
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
A-features
Area: features — conditional compilation
C-bug
Category: bug
I try to tell cargo what feature use when testing package
package
with command like this:cargo test --features my_feature -p package --lib
but I get result the same if I run:
cargo test -p package --lib
But if I run tests with command:
cargo test --features my_feature --manifest-path package/Cargo.toml --lib
Everything is ok.
The text was updated successfully, but these errors were encountered: