@@ -68,8 +68,8 @@ endfunction
68
68
69
69
function ! s: Paint () abort
70
70
let lines = []
71
+ let delimiter = get (g: , ' OmniSharp_testrunner_banner_delimeter' , ' ─' )
71
72
if get (g: , ' OmniSharp_testrunner_banner' , 1 )
72
- let delimiter = get (g: , ' OmniSharp_testrunner_banner_delimeter' , ' ─' )
73
73
call add (lines , repeat (delimiter , 80 ))
74
74
call add (lines , ' OmniSharp Test Runner' )
75
75
call add (lines , ' ' . repeat (delimiter , 76 ))
@@ -89,15 +89,18 @@ function! s:Paint() abort
89
89
for errorline in errors
90
90
call add (lines , ' < ' . trim (errorline, ' ' , 2 ))
91
91
endfor
92
- " The diagnostic logs (build output) are only displayed when a single file
93
- " is tested, otherwise multiple build outputs are intermingled
94
- if OmniSharp#GetHost (s: current .singlebuffer).sln_or_dir == # sln_or_dir
95
- if len (errors) > 0 && len (s: current .log ) > 1
96
- call add (lines , ' < ' . repeat (delimiter , 10 ))
92
+ let loglevel = get (g: , ' OmniSharp_testrunner_loglevel' , ' error' )
93
+ if loglevel == ? ' all' || (loglevel == ? ' error' && len (errors))
94
+ " The diagnostic logs (build output) are only displayed when a single file
95
+ " is tested, otherwise multiple build outputs are intermingled
96
+ if OmniSharp#GetHost (s: current .singlebuffer).sln_or_dir == # sln_or_dir
97
+ if len (errors) > 0 && len (s: current .log ) > 1
98
+ call add (lines , ' < ' . repeat (delimiter , 10 ))
99
+ endif
100
+ for log in s: current .log
101
+ call add (lines , ' < ' . trim (log , ' ' , 2 ))
102
+ endfor
97
103
endif
98
- for log in s: current .log
99
- call add (lines , ' < ' . trim (log , ' ' , 2 ))
100
- endfor
101
104
endif
102
105
for testfile in sort (keys (job.tests[testproject]))
103
106
call add (lines , ' ' . fnamemodify (testfile, ' :.' ))
0 commit comments