Output friendly failure messages when unexpected errors occur while translating a test script
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.
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.
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.