pod2test - Convert embedded tests and code examples to .t files
pod2test [-Mmodule] [input [output]]
pod2test is a front-end for Test::Inline. It generates MakeMaker style .t testing files from embedded tests and code examples.
If output is not specified, the resulting .t file will go to STDOUT. Otherwise, it will go to the given output file. If input is not given, it will draw from STDIN.
The Test::More module is made available to the testing blocks using the 'no_plan' feature. Any further modules which should be used are specified with -M. UNIMPLEMENTED
This is a very simple rough cut. It only does very rudimentary tests on the examples.
Michael G Schwern <schwern@pobox.com>
Test::Inline
To install Test::Inline, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Inline
CPAN shell
perl -MCPAN -e shell install Test::Inline
For more information on module installation, please visit the detailed CPAN module installation guide.