-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo test --all
passed but cargo test
failed
#6458
Comments
I think this is to be expected. Just because a package is a member of a workspace doesn't mean that all dev-dependencies will be used all the time. Since you are not running the tests for |
Is this another instance of #2589 perhaps? |
Similar, but not the same. In that issue, they don't want features to be unified. This issue is the opposite — they are not unified because the dev-dependency is not used. There's an interesting dynamic for how people want workspaces, dependencies, and features to work. Sometimes people want to force them to be unified (like rustc-workspace-hack), and sometimes they explicitly want them to be separate (like avoiding 'std' in a build-dependency poisoning your no-std crate). The solution for this issue is to either not expect the feature to be enabled, or enable it from the |
I got it. but how it explains the output result |
Heh, that's #1796. |
@ehuss thanks for the information. Wrap up:
|
Yea, I think that captures it. |
Problem
different testing result between
cargo test --all
andcargo test
Steps
cargo test --all
, passedcargo test
, failedPossible Solution(s)
Notes
Output of
cargo version
:cargo 1.31.0 (339d9f9 2018-11-16)
OS: MacOS 10.14.1
The text was updated successfully, but these errors were encountered: