The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

pod2test - Convert embedded tests and code examples to .t files

SYNOPSIS

  pod2test [-Mmodule] [input [output]]

DESCRIPTION

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

BUGS and CAVEATS

This is a very simple rough cut. It only does very rudimentary tests on the examples.

AUTHOR

Michael G Schwern <schwern@pobox.com>

SEE ALSO

Test::Inline