|go ahead... be a heretic|
RFC: Stub Test Generator perl module + vim scriptby chargrill (Parson)
|on Aug 09, 2007 at 06:29 UTC||Need Help??|
As a result of a recent "lunch and learn" session I gave at my office (discussed a bit here), I've created a vim script that maps a couple of key commands to perform the following functions:
I talked about this vim plugin during a lightning talk at a recent Chicago Perl Mongers meeting, and got some good feedback. Some of the questions/comments I got were:
So, I sought to address these.
The documentation and usage is available, but a quick synopsis of the module is:
Or, from the command line (for ease of use for vim or emacs):
There are a few more options for writing the test stubs directly to file, or to a given directory. I also have it passing the tests through perltidy, just to make sure I'm not creating unreadable test text - though that can be disabled.
Of note, you'll need to have PPI installed, at least version 1.118. Anyone who's using Perl::Critic shouldn't have a problem with this. And of course, Perl::Tidy needs to be installed.
So, I'm asking for any commentary and/or suggestions for improvement. But please be gentle, as these are my first releases :)
Thanks in advance!