@@ -133,7 +133,7 @@ function! s:RunTest(Callback, bufnr, codeElements) abort
133
133
let tests = s: FindTests (a: codeElements )
134
134
let currentTest = s: FindTest (tests)
135
135
if type (currentTest) != type ({})
136
- echohl WarningMsg | echom ' No test found' | echohl None
136
+ echohl WarningMsg | echomsg ' No test found' | echohl None
137
137
let s: runningTest = 0
138
138
return
139
139
endif
@@ -157,7 +157,7 @@ function! s:RunTestsRH(Callback, bufnr, tests, response) abort
157
157
if ! a: response .Success | return | endif
158
158
if type (a: response .Body.Results) != type ([])
159
159
echohl WarningMsg
160
- echom ' Error: "' . a: response .Body.Failure .
160
+ echomsg ' Error: "' . a: response .Body.Failure .
161
161
\ ' " - this may indicate a failed build'
162
162
echohl None
163
163
return
@@ -172,6 +172,15 @@ function! s:RunTestsRH(Callback, bufnr, tests, response) abort
172
172
\ ' filename' : bufname (a: bufnr ),
173
173
\ ' name' : substitute (result.MethodName, ' ^.*\.' , ' ' , ' ' )
174
174
\}
175
+ " Write any standard output to message-history
176
+ if len (get (result, ' StandardOutput' , []))
177
+ echomsg ' Standard output from test ' . location.name . ' :'
178
+ for output in result.StandardOutput
179
+ for line in split (trim (output), ' \r\?\n' , 1 )
180
+ echomsg ' ' . line
181
+ endfor
182
+ endfor
183
+ endif
175
184
if result.Outcome = ~? ' failed'
176
185
let location.type = ' E'
177
186
let location.text = location.name . ' : ' . result.ErrorMessage
@@ -209,7 +218,7 @@ function! s:DebugTest(Callback, bufnr, codeElements) abort
209
218
let tests = s: FindTests (a: codeElements )
210
219
let currentTest = s: FindTest (tests)
211
220
if type (currentTest) != type ({})
212
- echohl WarningMsg | echom ' No test found' | echohl None
221
+ echohl WarningMsg | echomsg ' No test found' | echohl None
213
222
let s: runningTest = 0
214
223
return
215
224
endif
@@ -282,7 +291,7 @@ function! s:RunTestsInFiles(Callback, bufferCodeStructures) abort
282
291
endif
283
292
endfor
284
293
if len (Requests) == 0
285
- echohl WarningMsg | echom ' No tests found' | echohl None
294
+ echohl WarningMsg | echomsg ' No tests found' | echohl None
286
295
let s: runningTest = 0
287
296
return
288
297
endif
0 commit comments