1POD2TEST(1) User Contributed Perl Documentation POD2TEST(1)
2
3
4
6 pod2test - (DEPRECATED) Convert embedded tests and code examples to .t
7 files
8
10 pod2test [-Mmodule] [input [output]]
11
13 pod2test is a front-end for Pod::Tests (formerly Test::Inline 1). It
14 generates TAP-compatible .t testing scripts from embedded tests and
15 code examples.
16
17 If output is not specified, the resulting .t file will go to STDOUT.
18 Otherwise, it will go to the given output file. If input is not given,
19 it will draw from STDIN.
20
21 If the given file contains no tests or code examples, no output will be
22 given, no output file will be created and pod2test will exit with 1.
23
24 The Test::More module is made available to the testing blocks using the
25 'no_plan' feature. Any further modules which should be used are
26 specified with -M. UNIMPLEMENTED
27
29 This is a very simple rough cut. It only does very rudimentary tests
30 on the examples.
31
33 This script has been superceded by "inline2test" from the newer
34 Test::Inline 2. Most testing code that currently works with "pod2test"
35 should continue to work with the new version.
36
37 The most notable exceptions are "=for begin" and "=for end", which are
38 deprecated in the newer version.
39
40 After upgrading Test::Inline, Pod::Tests and "pod2test" were split out
41 to provide a compatibility package for legacy code.
42
43 "pod2test" will stay in CPAN, but should remain unchanged indefinately,
44 with the exception of any minor bugs that will require squishing.
45
46 Bugs in this dist should be reported via the following URL. Feature
47 requests should not be submitted, as further development is now
48 occuring in Test::Inline.
49
50 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Pod-Tests>
51
53 Michael G Schwern <schwern@pobox.com>
54
55 Adam Kennedy <adamk@cpan.org>
56
58 Pod::Tests, Test::Inline
59
61 Copyright 2005 - 2008 Adam Kennedy.
62
63 Copyright 2001 - 2003 Michael G Schwern.
64
65 This program is free software; you can redistribute it and/or modify it
66 under the same terms as Perl itself.
67
68 The full text of the license can be found in the LICENSE file included
69 with this module.
70
71
72
73perl v5.30.0 2019-07-26 POD2TEST(1)