sponsor Vim development Vim logo Vim Book Ad

perlprove.vim : Perl unittest compiler. Parses Test::Harness' `prove` output.

 script karma  Rating 21/8, Downloaded by 1542  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
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
perlprove.vim 2 2005-07-30 6.0 Harmen Bus '-l' argument to prove added.
Fixed some comments.
perlprove.vim 1 2005-07-28 6.0 Harmen Bus Initial upload
ip used for rating: 3.17.154.171

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github