aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/tests/heavy_tests/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/tests/heavy_tests/main.rs')
-rw-r--r--crates/ra_lsp_server/tests/heavy_tests/main.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/ra_lsp_server/tests/heavy_tests/main.rs b/crates/ra_lsp_server/tests/heavy_tests/main.rs
index cbc0c8844..63d53fb01 100644
--- a/crates/ra_lsp_server/tests/heavy_tests/main.rs
+++ b/crates/ra_lsp_server/tests/heavy_tests/main.rs
@@ -1,5 +1,7 @@
1mod support; 1mod support;
2 2
3use serde_json::json;
4
3use ra_lsp_server::req::{Runnables, RunnablesParams}; 5use ra_lsp_server::req::{Runnables, RunnablesParams};
4 6
5use crate::support::project; 7use crate::support::project;
@@ -21,7 +23,7 @@ fn foo() {
21 text_document: server.doc_id("lib.rs"), 23 text_document: server.doc_id("lib.rs"),
22 position: None, 24 position: None,
23 }, 25 },
24 r#"[ 26 json!([
25 { 27 {
26 "args": [ "test", "--", "foo", "--nocapture" ], 28 "args": [ "test", "--", "foo", "--nocapture" ],
27 "bin": "cargo", 29 "bin": "cargo",
@@ -51,7 +53,7 @@ fn foo() {
51 } 53 }
52 } 54 }
53 } 55 }
54 ]"#, 56 ]),
55 ); 57 );
56} 58}
57 59
@@ -78,7 +80,7 @@ fn test_eggs() {}
78 text_document: server.doc_id("tests/spam.rs"), 80 text_document: server.doc_id("tests/spam.rs"),
79 position: None, 81 position: None,
80 }, 82 },
81 r#"[ 83 json!([
82 { 84 {
83 "args": [ "test", "--package", "foo", "--test", "spam", "--", "test_eggs", "--nocapture" ], 85 "args": [ "test", "--package", "foo", "--test", "spam", "--", "test_eggs", "--nocapture" ],
84 "bin": "cargo", 86 "bin": "cargo",
@@ -111,6 +113,6 @@ fn test_eggs() {}
111 } 113 }
112 } 114 }
113 } 115 }
114 ]"# 116 ])
115 ); 117 );
116} 118}