Skip to content

Support for features #59

Closed
Closed
@dbrgn

Description

@dbrgn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions