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

cargo test -p ignores dev-dependencies #2651

Closed
brson opened this issue May 5, 2016 · 1 comment
Closed

cargo test -p ignores dev-dependencies #2651

brson opened this issue May 5, 2016 · 1 comment

Comments

@brson
Copy link
Contributor

brson commented May 5, 2016

In rustup I have a rustup crate that depends on a rustup-dist crate.

In the Cargo.toml for rustup-dist I have:

[dev-dependencies]
url = "1.1.0"

And in my 'tests' folder tests with import the url crate.

When I run tests from the 'workspace' level with cargo test -p rustup-dist the url crate does not resolve, but if I cd into the rustup-dist directory and run cargo test it works correctly.

@alexcrichton
Copy link
Member

Dupe of #860, but definitely an unfortunate bug. Will be fixed with workspaces!

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

No branches or pull requests

2 participants