4258: Test/check the whole package r=matklad a=matklad

Closes #4255



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-05-02 09:12:31 +00:00 committed by GitHub
commit 06fb7247d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -400,11 +400,7 @@ pub fn handle_runnables(
range: Default::default(),
label: format!("cargo {} -p {}", cmd, spec.package),
bin: "cargo".to_string(),
args: {
let mut args = vec![cmd.to_string()];
spec.clone().push_to(&mut args);
args
},
args: vec![cmd.to_string(), "--package".to_string(), spec.package.clone()],
extra_args: Vec::new(),
env: FxHashMap::default(),
cwd: workspace_root.map(|root| root.to_owned()),

View File

@ -149,7 +149,7 @@ fn main() {}
"cwd": server.path().join("foo")
},
{
"args": [ "check", "--package", "foo", "--test", "spam" ],
"args": [ "check", "--package", "foo" ],
"extraArgs": [],
"bin": "cargo",
"env": {},
@ -161,7 +161,7 @@ fn main() {}
"cwd": server.path().join("foo")
},
{
"args": [ "test", "--package", "foo", "--test", "spam" ],
"args": [ "test", "--package", "foo" ],
"extraArgs": [],
"bin": "cargo",
"env": {},