If you read this post, you'll notice that my Test::Class driver script allows the following syntax:
However, some of my tests are in Test::Class style and some of my tests are old-style test scripts. I bound two keys in vim to handle them (,T and
if exists( "perl_tests" )
let perl_tests = 1
,t :call RunTests()<cr>
if match(getline(1), 'package') > -1
execute ":!perl t/test_class_tests.t %"
execute ":!prove -lv %"
If you're using my Test::Class driver script or a similar variation and you save the above in something like ~/.vim/plugin/PerlTests.vim, then whenever you hit
Checking to see if a file is named test.pl, ends in