File tree 1 file changed +4
-3
lines changed
autoload/OmniSharp/actions
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -148,19 +148,20 @@ function! s:run.single.test(testName, bufferTests) abort
148
148
endfunction
149
149
150
150
function ! s: run .single.complete (summary) abort
151
- if len (a: summary .locations) > 1
151
+ let locations = filter (copy (a: summary .locations), ' has_key(v:val, "bufnr")' )
152
+ if len (locations) > 1
152
153
" A single test was run, but multiple test results were returned. This can
153
154
" happen when using e.g. NUnit TestCaseSources which re-run the test using
154
155
" different arguments.
155
156
call s: run .multiple.complete ([a: summary ])
156
157
return
157
158
endif
158
- if a: summary .pass && len (a: summary . locations) == 0
159
+ if a: summary .pass && len (locations) == 0
159
160
echomsg ' No tests were run'
160
161
" Do we ever reach here?
161
162
" call OmniSharp#testrunner#StateSkipped(bufnr)
162
163
endif
163
- let location = a: summary . locations[0 ]
164
+ let location = locations[0 ]
164
165
call OmniSharp#testrunner#StateComplete (location)
165
166
if a: summary .pass
166
167
if get (location, ' type' , ' ' ) == # ' W'
You can’t perform that action at this time.
0 commit comments