aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/tests/heavy_tests/main.rs49
1 files changed, 0 insertions, 49 deletions
diff --git a/crates/rust-analyzer/tests/heavy_tests/main.rs b/crates/rust-analyzer/tests/heavy_tests/main.rs
index c80745945..69dc719c5 100644
--- a/crates/rust-analyzer/tests/heavy_tests/main.rs
+++ b/crates/rust-analyzer/tests/heavy_tests/main.rs
@@ -59,55 +59,6 @@ use std::collections::Spam;
59} 59}
60 60
61#[test] 61#[test]
62fn test_runnables_no_project() {
63 if skip_slow_tests() {
64 return;
65 }
66
67 let server = project(
68 r"
69//- lib.rs
70#[test]
71fn foo() {
72}
73",
74 );
75 server.wait_until_workspace_is_loaded();
76 server.request::<Runnables>(
77 RunnablesParams { text_document: server.doc_id("lib.rs"), position: None },
78 json!([
79 {
80 "args": {
81 "cargoArgs": ["test"],
82 "executableArgs": ["foo", "--nocapture"],
83 },
84 "kind": "cargo",
85 "label": "test foo",
86 "location": {
87 "targetRange": {
88 "end": { "character": 1, "line": 2 },
89 "start": { "character": 0, "line": 0 }
90 },
91 "targetSelectionRange": {
92 "end": { "character": 6, "line": 1 },
93 "start": { "character": 3, "line": 1 }
94 },
95 "targetUri": "file:///[..]/lib.rs"
96 }
97 },
98 {
99 "args": {
100 "cargoArgs": ["check", "--workspace"],
101 "executableArgs": [],
102 },
103 "kind": "cargo",
104 "label": "cargo check --workspace"
105 }
106 ]),
107 );
108}
109
110#[test]
111fn test_runnables_project() { 62fn test_runnables_project() {
112 if skip_slow_tests() { 63 if skip_slow_tests() {
113 return; 64 return;