Test/check the whole package

Closes #4255
This commit is contained in:
Aleksey Kladov 2020-05-02 10:57:37 +02:00
parent 3c96de5380
commit 247d32cbfd
2 changed files with 3 additions and 7 deletions

View file

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

View file

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