Test::Snippet - doctest for perl
use Test::Snippet tests => 1; # simple repl: test_snippet(<<'...'); $ 3+2 5 ... # tests in pod: test_snippet_in_pod(<<'...'); =head1 DESCRIPTION ... =begin snippet $ 4*5 20 =end ...
Test::Snippet is doctest for perl.
THIS MODULE IS IN ITS BETA QUALITY. API MAY CHANGE IN THE FUTURE.
Very similar.
But, Test::Snippet way is based on REPL(read eval print loop). This is very readable and users can run in own console!
Tokuhiro Matsuno <tokuhirom@gmail.com>
Tatsuhiko Miyagawa charsbar
Test::Pod::Snippets, Test::Inline
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Test::Snippet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Snippet
CPAN shell
perl -MCPAN -e shell install Test::Snippet
For more information on module installation, please visit the detailed CPAN module installation guide.