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

Check all targets for package-level tasks #5563

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

SomeoneToIgnore
Copy link
Contributor

When invoking "Select Runnable" with the caret on a runnable with a specific target (test, bench, binary), append the corresponding argument for the cargo check -p module runnable.

@matklad
Copy link
Member

matklad commented Jul 29, 2020

We check the whole package by design. There's usually little benefit in checking only some things (as check is fast), and it's convenient if everything is checked. Does blanket cargo check -p checks example&benches though? I think it should.

@SomeoneToIgnore
Copy link
Contributor Author

No, that's why I've created this PR.

Simple to check: make a compiler error in the tests, run the "-p" check command, there will be no errors.

@SomeoneToIgnore
Copy link
Contributor Author

Oh, sorry, not sure about examples & benches for sure, but tests errors are not checked by the current command.

Currently, the only way to verify that the tests compile is to actually run them, there's no check runnable RA provides for them.

@matklad
Copy link
Member

matklad commented Jul 29, 2020 via email

@SomeoneToIgnore
Copy link
Contributor Author

I've added --all-targets for both check and test package-local commands (both allow the key) now.

@SomeoneToIgnore SomeoneToIgnore changed the title Check the most specific target for the package Check all targets for package-level tasks Jul 29, 2020
@matklad
Copy link
Member

matklad commented Jul 29, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 29, 2020

@bors bors bot merged commit bd5d236 into rust-lang:master Jul 29, 2020
@SomeoneToIgnore SomeoneToIgnore deleted the check-tests branch July 29, 2020 22:10
@SomeoneToIgnore
Copy link
Contributor Author

Could that be that the functionality was removed due to the duplicate output?

image

That is indeed more verbose than needed now.

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

Successfully merging this pull request may close these issues.

2 participants