Skip to content

Cannot run workspace tests without --all-features #4528

@heaths

Description

@heaths

Cosmos tests are failing to compile when running e.g., cargo test in the workspace root without --all-features. The problem is that sdk/cosmos/azure_data_cosmos/tests/framework/mod.rs declares pub mod test_client but sdk/cosmos/azure_data_cosmos/tests/framework/test_client.rs itself has a #![cfg(feature = "fault_injection")]. The pub use test_client::{/*...*/} in mod.rs didn't. I added it, but lots of types that were exported aren't gated.

I should be able to test the workspace for cross-cutting changes without --all-features, which takes longer and is often unnecessary at least as an initial test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.CosmosThe azure_cosmos crateneeds-team-triageWorkflow: This issue needs the team to triage.test-reliabilityIssue that causes tests to be unreliable

    Type

    No fields configured for Bug.

    Projects

    Status
    Untriaged
    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions