From bca5a41dff2e27e39e5bf4a5750c3527de7e7d5e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 25 Oct 2018 13:42:53 +0300 Subject: Fix the test --- crates/ra_lsp_server/tests/heavy_tests/main.rs | 58 ++++++++++++++++++-------- 1 file changed, 41 insertions(+), 17 deletions(-) diff --git a/crates/ra_lsp_server/tests/heavy_tests/main.rs b/crates/ra_lsp_server/tests/heavy_tests/main.rs index 8e566d3c8..0f6084555 100644 --- a/crates/ra_lsp_server/tests/heavy_tests/main.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/main.rs @@ -41,6 +41,25 @@ fn foo() { "end": { "character": 1, "line": 2 }, "start": { "character": 0, "line": 0 } } + }, + { + "args": [ + "check", + "--all" + ], + "bin": "cargo", + "env": {}, + "label": "cargo check --all", + "range": { + "end": { + "character": 0, + "line": 0 + }, + "start": { + "character": 0, + "line": 0 + } + } } ]"#, ); @@ -79,24 +98,29 @@ fn test_eggs() {} "end": { "character": 17, "line": 1 }, "start": { "character": 0, "line": 0 } } + }, + { + "args": [ + "check", + "--package", + "foo", + "--test", + "spam" + ], + "bin": "cargo", + "env": {}, + "label": "cargo check -p foo", + "range": { + "end": { + "character": 0, + "line": 0 + }, + "start": { + "character": 0, + "line": 0 + } + } } ]"# ); } - -// #[test] -// fn test_deps() { -// let server = project(r#" -// //- Cargo.toml -// [package] -// name = "foo" -// version = "0.0.0" -// [dependencies] -// regex = "=1.0.4" - -// //- src/lib.rs -// extern crate regex; -// "#); -// server.wait_for_feedback("workspace loaded"); -// server.wait_for_feedback_n("library loaded", 9); -// } -- cgit v1.2.3