perlprove.vim : Perl unittest compiler. Parses Test::Harness' `prove` output.
script karma |
Rating 21/8,
Downloaded by 1614 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Harmen Bus |
|
script type |
utility |
|
description |
Runs the Test::Harness 'prove' utility and formats the errors. It is implemented as a compiler, so it's invoked with :make and the usual error navigation commands work.
Usage:
:make - runs prove for the testfile you are in. Failed tests and perl errors are recognized by vim and it jumps to the first error (failed test or perl syntax error). Use :cn and :cp to go to the next resp. previous error. :cl gives a list of all the errors and :cc <number> jumps to a specific error message. See the 'quickfix' part in the vim manual.
:make <arguments> - runs prove with the argument you give. It does not add the filename of the current test. Useful to run all your test, eq: ':make *t', or ':make t'
|
|
install details |
Copy perlprove.vim to ~/.vim/compiler
Add to your .vimrc:
au BufRead,BufNewFile *.t set filetype=perl | compiler perlprove |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 44.220.184.63
|