Skip to content

Commit ee181cf

Browse files
committed
Drop no-project test
Eventually, we should support "just open random rust file" use case, we don't really do this now, so let's avoid spending time on it until we fix it properly.
1 parent d4b2147 commit ee181cf

File tree

1 file changed

+0
-49
lines changed
  • crates/rust-analyzer/tests/heavy_tests

1 file changed

+0
-49
lines changed

crates/rust-analyzer/tests/heavy_tests/main.rs

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -58,55 +58,6 @@ use std::collections::Spam;
5858
eprintln!("completion took {:?}", completion_start.elapsed());
5959
}
6060

61-
#[test]
62-
fn test_runnables_no_project() {
63-
if skip_slow_tests() {
64-
return;
65-
}
66-
67-
let server = project(
68-
r"
69-
//- lib.rs
70-
#[test]
71-
fn 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-
11061
#[test]
11162
fn test_runnables_project() {
11263
if skip_slow_tests() {

0 commit comments

Comments
 (0)