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.
This commit is contained in:
parent
d4b21476a8
commit
ee181cf683
@ -58,55 +58,6 @@ fn completes_items_from_standard_library() {
|
||||
eprintln!("completion took {:?}", completion_start.elapsed());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_runnables_no_project() {
|
||||
if skip_slow_tests() {
|
||||
return;
|
||||
}
|
||||
|
||||
let server = project(
|
||||
r"
|
||||
//- lib.rs
|
||||
#[test]
|
||||
fn foo() {
|
||||
}
|
||||
",
|
||||
);
|
||||
server.wait_until_workspace_is_loaded();
|
||||
server.request::<Runnables>(
|
||||
RunnablesParams { text_document: server.doc_id("lib.rs"), position: None },
|
||||
json!([
|
||||
{
|
||||
"args": {
|
||||
"cargoArgs": ["test"],
|
||||
"executableArgs": ["foo", "--nocapture"],
|
||||
},
|
||||
"kind": "cargo",
|
||||
"label": "test foo",
|
||||
"location": {
|
||||
"targetRange": {
|
||||
"end": { "character": 1, "line": 2 },
|
||||
"start": { "character": 0, "line": 0 }
|
||||
},
|
||||
"targetSelectionRange": {
|
||||
"end": { "character": 6, "line": 1 },
|
||||
"start": { "character": 3, "line": 1 }
|
||||
},
|
||||
"targetUri": "file:///[..]/lib.rs"
|
||||
}
|
||||
},
|
||||
{
|
||||
"args": {
|
||||
"cargoArgs": ["check", "--workspace"],
|
||||
"executableArgs": [],
|
||||
},
|
||||
"kind": "cargo",
|
||||
"label": "cargo check --workspace"
|
||||
}
|
||||
]),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_runnables_project() {
|
||||
if skip_slow_tests() {
|
||||
|
Loading…
Reference in New Issue
Block a user