Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support features #95

Open
Emilgardis opened this issue Dec 18, 2020 · 2 comments
Open

support features #95

Emilgardis opened this issue Dec 18, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Emilgardis
Copy link

Tests are not shown if they are behind a #[cfg(feature = "my_feature)]", this extension should support forwarding features to all cargo commands. i.e cargo test --features "a b c" -- --list

One thing to note is that you can not use --features in cargo workspaces

@calebcartwright
Copy link
Member

Thanks for reach out @Emilgardis! I had a similar realization the other week but hadn't gotten around to writing anything up yet.

I wasn't sure whether just including --all-features by default would suffice or if we'd need something more complex like user configured values and/or trying to do some auto detection based on the metadata output

@calebcartwright calebcartwright added the enhancement New feature or request label Dec 18, 2020
@Emilgardis
Copy link
Author

I think --all-features is fine if you can specify it with a config key, as sometimes using --all-features can cause issues, even though features should be additive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants