Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
If you read this post, you'll notice that my Test::Class driver script allows the following syntax:
t/test_class_tests.t path/to/test/class/to/run.pm
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" )
finish
endif
let perl_tests = 1
noremap <silent>,t :call RunTests()<cr>
function RunTests()
if match(getline(1), 'package') > -1
execute ":!perl t/test_class_tests.t %"
else
execute ":!prove -lv %"
endif
endfunction
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
Better testing with vim! 0 Comments More | Login | Reply /