Hi. I'm currently a user of assert_cli in tealdeer and am thinking about moving to assert_cmd. The main issue I'm facing there is that the binary (when calling Assert::main_binary()) is always compiled with default features, even if I compile the tests with --no-default-features.
Does assert_cmd have a solution for this? Ideally I'd either be able to pass the features to the main_binary or cargo_bin methods, or would have a way to specify the features per-invocation by other means (e.g. set_features(&["networking"]) or set_features(&[])). This way, I could test different feature flags from a single test binary.
Alternatively compiling the main binary with the same flags as the test binary would be fine too.
Hi. I'm currently a user of
assert_cliin tealdeer and am thinking about moving toassert_cmd. The main issue I'm facing there is that the binary (when callingAssert::main_binary()) is always compiled with default features, even if I compile the tests with--no-default-features.Does
assert_cmdhave a solution for this? Ideally I'd either be able to pass the features to themain_binaryorcargo_binmethods, or would have a way to specify the features per-invocation by other means (e.g.set_features(&["networking"])orset_features(&[])). This way, I could test different feature flags from a single test binary.Alternatively compiling the main binary with the same flags as the test binary would be fine too.