Skip to content

Commit

Permalink
summary/qfl: do not include pending
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 21, 2018
1 parent c70bb8c commit 941f38a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoload/vader.vim
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,9 @@ function! s:run(filename, cases, options)

if empty(error)
let success += 1
else
elseif case.pending
let pending += case.pending
else
let description = prefix.' '.join(filter([
\ comment.given,
\ get(case.comment, 'do', get(case.comment, 'execute', '')),
Expand All @@ -427,7 +428,7 @@ function! s:run(filename, cases, options)
let errpos = [a:filename, case.lnum]
endif
call add(qfl, { 'type': 'E', 'filename': fnamemodify(errpos[0], ':~:.'), 'lnum': errpos[1], 'text': description })
if exitfirst && !case.pending
if exitfirst
call vader#window#append('Stopping after first failure.', 2)
break
endif
Expand Down

0 comments on commit 941f38a

Please sign in to comment.