vim-vspec icon indicating copy to clipboard operation
vim-vspec copied to clipboard

Output friendly failure messages when unexpected errors occur while translating a test script

Open kana opened this issue 11 years ago • 3 comments

kana avatar Mar 19 '14 13:03 kana

Please fix this. I'm getting:

t/bm_move_spec.vim (Wstat: 0 Tests: 2 Failed: 0)
  Parse errors: Tests out of sequence.  Found (2) but expected (1)
                Tests out of sequence.  Found (3) but expected (2)
                Bad plan.  You planned 3 tests but ran 2.

and it's simply impossible to find which part the parser didn't like and why.

nkgm avatar Apr 16 '17 16:04 nkgm

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.

nkgm avatar Apr 17 '17 07:04 nkgm

Note that this issue is about translation errors caused by, for example, unmatched :it and :end pairs.

@nkgm What you mentioned is another problem. :redraw itself is a valid command and does not cause any error while translating a test script. The problem you encountered occurs while running a translated test script.

kana avatar Feb 24 '18 02:02 kana