-
Notifications
You must be signed in to change notification settings - Fork 1
Commit 3e5dea6
Added black box integration tests for DAP server. (#7)
- Created a test-suite executable that mocks client / server
communication. This is basically an implementation of vscode-mock-debug,
except without a mock runtime.
- Removed 'seqRef'. Client / server communication (seems to be) always
synchronous, events (seem to) not account for 'seqNum', and only a
single response is permitted per request. Therefore, we can always use the
'seqNum' on the request in the response, incremented by one.
- Fixed a bug where the 'requestSeqNum' was being used as the
'seqNum'.
- Made all printing subject to a logging 'Bool' value. This ensures that
test output is not interleaved with server output (since the tests
run the server in a forked thread), but set 'debugLogging' to 'False'.
- Added a helper function 'readPayload' for use in tests.
- Re-added 'resetAdaptorStatePayload'. This is necessary for the
new OutputEvent sink, otherwise it might send extra JSON from the parent
thread it was forked from.
- Added some tests for sequence numbers, events and some client
connection load testing.1 parent f400d44 commit 3e5dea6
6 files changed
+267
-50
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 |
|
Lines changed: 39 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 | - | ||
19 | + | ||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + |
Lines changed: 4 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 | - | ||
156 | - | ||
157 | - | ||
158 | - | ||
159 | - | ||
160 | 155 |
| |
161 | 156 |
| |
162 | 157 |
| |
| |||
188 | 183 |
| |
189 | 184 |
| |
190 | 185 |
| |
191 | - | ||
192 | - | ||
186 | + | ||
187 | + | ||
193 | 188 |
| |
194 | 189 |
| |
195 | 190 |
| |
| |||
205 | 200 |
| |
206 | 201 |
| |
207 | 202 |
| |
208 | - | ||
209 | 203 |
| |
210 | 204 |
| |
211 | 205 |
| |
| |||
258 | 252 |
| |
259 | 253 |
| |
260 | 254 |
| |
261 | - | ||
262 | 255 |
| |
263 | 256 |
| |
257 | + | ||
264 | 258 |
| |
265 | 259 |
| |
266 | 260 |
| |
| |||
269 | 263 |
| |
270 | 264 |
| |
271 | 265 |
| |
272 | - | ||
266 | + | ||
273 | 267 |
| |
274 | 268 |
| |
275 | 269 |
| |
|
Lines changed: 39 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | + | ||
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| |||
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
37 | - | ||
38 | + | ||
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
60 | 61 |
| |
61 | 62 |
| |
62 | 63 |
| |
63 | - | ||
64 | + | ||
64 | 65 |
| |
65 | 66 |
| |
66 | - | ||
67 | + | ||
68 | + | ||
69 | + | ||
67 | 70 |
| |
68 | - | ||
71 | + | ||
69 | 72 |
| |
70 | 73 |
| |
71 | - | ||
74 | + | ||
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
| |||
81 | 84 |
| |
82 | 85 |
| |
83 | 86 |
| |
84 | - | ||
85 | 87 |
| |
86 | 88 |
| |
87 | 89 |
| |
| |||
95 | 97 |
| |
96 | 98 |
| |
97 | 99 |
| |
98 | - | ||
99 | - | ||
100 | - | ||
101 | - | ||
102 | - | ||
103 | - | ||
104 | - | ||
105 | - | ||
106 | - | ||
107 | - | ||
108 | - | ||
109 | 100 |
| |
110 | 101 |
| |
111 | 102 |
| |
| |||
117 | 108 |
| |
118 | 109 |
| |
119 | 110 |
| |
120 | - | ||
111 | + | ||
121 | 112 |
| |
122 | 113 |
| |
123 | 114 |
| |
| |||
130 | 121 |
| |
131 | 122 |
| |
132 | 123 |
| |
133 | - | ||
134 | - | ||
124 | + | ||
125 | + | ||
135 | 126 |
| |
136 | 127 |
| |
137 | 128 |
| |
138 | 129 |
| |
139 | 130 |
| |
140 | 131 |
| |
141 | 132 |
| |
142 | - | ||
143 | - | ||
133 | + | ||
134 | + | ||
144 | 135 |
| |
145 | 136 |
| |
146 | 137 |
| |
147 | 138 |
| |
148 | - | ||
149 | - | ||
139 | + | ||
140 | + | ||
141 | + | ||
150 | 142 |
| |
151 | 143 |
| |
152 | 144 |
| |
| |||
174 | 166 |
| |
175 | 167 |
| |
176 | 168 |
| |
177 | - | ||
178 | - | ||
179 | - | ||
180 | - | ||
181 | - | ||
182 | - | ||
183 | - | ||
184 | - | ||
185 | - | ||
186 | - | ||
187 | - | ||
169 | + | ||
170 | + | ||
171 | + | ||
172 | + | ||
173 | + | ||
174 | + | ||
175 | + | ||
176 | + | ||
177 | + | ||
178 | + | ||
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | ||
185 | + | ||
186 | + | ||
187 | + | ||
188 | + | ||
189 | + | ||
190 | + | ||
191 | + |
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
282 | 282 |
| |
283 | 283 |
| |
284 | 284 |
| |
285 | - | ||
286 | - | ||
287 | - | ||
288 | 285 |
| |
289 | 286 |
| |
290 | 287 |
| |
|
0 commit comments