diff options
Diffstat (limited to 'crates/ra_lsp_server/tests/heavy_tests/main.rs')
-rw-r--r-- | crates/ra_lsp_server/tests/heavy_tests/main.rs | 58 |
1 files 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() { | |||
41 | "end": { "character": 1, "line": 2 }, | 41 | "end": { "character": 1, "line": 2 }, |
42 | "start": { "character": 0, "line": 0 } | 42 | "start": { "character": 0, "line": 0 } |
43 | } | 43 | } |
44 | }, | ||
45 | { | ||
46 | "args": [ | ||
47 | "check", | ||
48 | "--all" | ||
49 | ], | ||
50 | "bin": "cargo", | ||
51 | "env": {}, | ||
52 | "label": "cargo check --all", | ||
53 | "range": { | ||
54 | "end": { | ||
55 | "character": 0, | ||
56 | "line": 0 | ||
57 | }, | ||
58 | "start": { | ||
59 | "character": 0, | ||
60 | "line": 0 | ||
61 | } | ||
62 | } | ||
44 | } | 63 | } |
45 | ]"#, | 64 | ]"#, |
46 | ); | 65 | ); |
@@ -79,24 +98,29 @@ fn test_eggs() {} | |||
79 | "end": { "character": 17, "line": 1 }, | 98 | "end": { "character": 17, "line": 1 }, |
80 | "start": { "character": 0, "line": 0 } | 99 | "start": { "character": 0, "line": 0 } |
81 | } | 100 | } |
101 | }, | ||
102 | { | ||
103 | "args": [ | ||
104 | "check", | ||
105 | "--package", | ||
106 | "foo", | ||
107 | "--test", | ||
108 | "spam" | ||
109 | ], | ||
110 | "bin": "cargo", | ||
111 | "env": {}, | ||
112 | "label": "cargo check -p foo", | ||
113 | "range": { | ||
114 | "end": { | ||
115 | "character": 0, | ||
116 | "line": 0 | ||
117 | }, | ||
118 | "start": { | ||
119 | "character": 0, | ||
120 | "line": 0 | ||
121 | } | ||
122 | } | ||
82 | } | 123 | } |
83 | ]"# | 124 | ]"# |
84 | ); | 125 | ); |
85 | } | 126 | } |
86 | |||
87 | // #[test] | ||
88 | // fn test_deps() { | ||
89 | // let server = project(r#" | ||
90 | // //- Cargo.toml | ||
91 | // [package] | ||
92 | // name = "foo" | ||
93 | // version = "0.0.0" | ||
94 | // [dependencies] | ||
95 | // regex = "=1.0.4" | ||
96 | |||
97 | // //- src/lib.rs | ||
98 | // extern crate regex; | ||
99 | // "#); | ||
100 | // server.wait_for_feedback("workspace loaded"); | ||
101 | // server.wait_for_feedback_n("library loaded", 9); | ||
102 | // } | ||