You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite looking through the documentation and issues, I couldn't find much besides #50 (which requests a bigger feature).
Is there a way - and if not, would it be possible - to define Cargo features which should be activated when building?
Basically, I'd like to specify features in the configuration which I would otherwise specify on the command line (cargo nextext run --features somefeature).
The way I'd imagine writing this in the configuration would be as follows:
[profile.default]
features = ["somefeature"]
PS: Thank you for this absolutely amazing tool, it's so much nicer than cargo test!
The text was updated successfully, but these errors were encountered:
Thanks for the report. At the moment, this isn't supported -- nextest tries to customize the build process as little as possible. Though you make a compelling case, and I can definitely see how this may help.
If package p2 is being built, also enable feature f2.
Always include package p3.
Always include binary b1.
This can also be used in an additive fashion with overrides -- letting you say that: if e.g. rdeps(db-tests) is being built, also build a db-support binary.
Related (and possibly part of this enhancement) it would be great if there was a way to configure features for each crate within a workspace allowing something like run all tests with root/crate-a --features foo and root/crate-b --features bar. The features are not all additive unfortunately so running --all-features isn't an option. I can run them separately but that complicates CI and coverage output.
Despite looking through the documentation and issues, I couldn't find much besides #50 (which requests a bigger feature).
Is there a way - and if not, would it be possible - to define Cargo features which should be activated when building?
Basically, I'd like to specify features in the configuration which I would otherwise specify on the command line (
cargo nextext run --features somefeature
).The way I'd imagine writing this in the configuration would be as follows:
PS: Thank you for this absolutely amazing tool, it's so much nicer than
cargo test
!The text was updated successfully, but these errors were encountered: