kana / vim-vspec

Vim plugin: Testing framework for Vim script
http://www.vim.org/scripts/script.php?script_id=3012
220 stars 13 forks source link

:redraw interferes Vim output and prove fails to parse the resulting output #55

Closed kana closed 6 years ago

kana commented 6 years ago

From gh-41:

In this case it was because of redraw being invoked in one of the tested functions. Can be easily reproduced by calling redraw in the spec directly.

Steps to reproduce

" t/redraw.vim
describe ':redraw'
  it 'does not affect TAP format (1)'
    redraw
  end

  it 'does not affect TAP format (2)'
    redraw
  end
end
./bin/vspec . t/redraw.vim

Expected result

ok 1 - :redraw does not affect TAP format (1)
ok 2 - :redraw does not affect TAP format (2)
1..2

Actual result

ok 1 - :redraw does not affect TAP format (1)ok 2 - :redraw does not affect TAP format (2)
1..2
kana commented 6 years ago

@nkgm I've fixed the problem you encountered in https://github.com/MattesGroeger/vim-bookmarks/pull/119