-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
need a way to run tests on dependencies #483
Comments
cc #482, one possible strategy |
This also affects gfx-rs. Currently we have a Makefile that cds into the subdirectories, but that causes a huge amount of redundant recompilations of dependencies. |
Could we have the ability to have something like:
Then cargo would run the specified command using the |
@alexcrichton What do you think about supporting running tests recursively, that is, for the package specified and all its dependencies? Say, |
Hm, perhaps we could start of with accepting multiple |
I do! |
@alexcrichton well, I'd be for a |
I believe there is a real problem here is when cargo is building dependencies. If people are suggesting But there is a problem. That's with building local dependencies whilst developing. You run I don't want to go with the So I'd love to see a Tbh many other build tools allow you to have test as a part of the build. So if the build fails, the test fails. If you build a dependency, then it's tests are run too. Build and test go hand in hand. They don't in cargo. So perhaps there is a better third solution here. |
My two cents.
Which equals to:
And optionally one of these for unlimited depth test:
|
Currently
cargo test
only runs tests for the top level package. I need some way to run tests for some of the dependencies. In servo these would be at least the path dependencies (which we have to work around lack of multiple [lib] sections). But it would also be nice to run them for arbitrary dependencies.The text was updated successfully, but these errors were encountered: