From 247d32cbfdc2683ee4f6fd1474b65840131551dc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 2 May 2020 10:57:37 +0200 Subject: Test/check the whole package Closes #4255 --- crates/rust-analyzer/src/main_loop/handlers.rs | 6 +----- crates/rust-analyzer/tests/heavy_tests/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'crates') diff --git a/crates/rust-analyzer/src/main_loop/handlers.rs b/crates/rust-analyzer/src/main_loop/handlers.rs index 0f623949e..914062902 100644 --- a/crates/rust-analyzer/src/main_loop/handlers.rs +++ b/crates/rust-analyzer/src/main_loop/handlers.rs @@ -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()), diff --git a/crates/rust-analyzer/tests/heavy_tests/main.rs b/crates/rust-analyzer/tests/heavy_tests/main.rs index 07b8114c6..a218da76d 100644 --- a/crates/rust-analyzer/tests/heavy_tests/main.rs +++ b/crates/rust-analyzer/tests/heavy_tests/main.rs @@ -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": {}, -- cgit v1.2.3