-
-
Notifications
You must be signed in to change notification settings - Fork 107
Run --no-default-features and --all-features suites #50
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
Comments
Hi there, thanks for the feature request! I think this gets complicated really soon:
I think this should probably be handled outside of nextest rather than inside it. For example, in CI you could use a matrix build strategy, and for more advanced behavior you could write your own tool that computes the power set of features. With matrix builds in particular, it's likely that doing so in several jobs is likely to be significantly faster than doing everything in the same job. I'm really hesitant to add this to nextest itself, I think the feature doesn't really carry its weight in terms of maintenance burden (especially because it can't be reused across cargo build, cargo clippy etc). Let me know what you think! |
BTW if you want to build something like this yourself, check out https://crates.io/crates/guppy, another thing I wrote (which nextest uses, in fact!) |
Couple of thoughts:
|
Thanks! I totally agree it's valuable for the community, I just don't think nextest itself should implement it internally. If someone else (like yourself!) implements this as a library/binary pair for use in the Cargo ecosystem generally, I'd be happy to see if nextest can integrate it in the future. I think the point about sharding is really interesting! One of the issues is that you end up having to do lots of builds because of the way Cargo's feature unification works, so figuring out an optimal strategy is quite complicated. |
Hi! Nextest looks pretty great!
One common thing I have in many crates is running tests with different feature sets. Would be nice to be able to merge those tests into the single set of tests instead of running sequentially via separate commands, if it's at all possible.
The text was updated successfully, but these errors were encountered: