Use ::Optional::Dependencies for POD testing modules, so that they are
author deps and the minimum required version of Pod::Simple (3.22, which
checks that the correct =encoding is set) is also used.
desc => 'Modules required for using testing using a config file with dbicdump',
},
},
+
+ test_pod => {
+ req => {
+ 'Test::Pod' => '1.14',
+ 'Pod::Simple' => '3.22',
+ },
+ pod => {
+ title => 'POD testing',
+ desc => 'Modules required for testing POD in this distribution',
+ },
+ },
};
sub req_list_for {
+#!perl
+
+use strict;
+use warnings;
+
use Test::More;
-eval "use Test::Pod 1.14";
-plan skip_all => 'Test::Pod 1.14 required' if $@;
+BEGIN {
+ use DBIx::Class::Schema::Loader::Optional::Dependencies ();
+ if (DBIx::Class::Schema::Loader::Optional::Dependencies->req_ok_for('test_pod')) {
+ Test::Pod->import;
+ }
+ else {
+ plan skip_all => 'Tests needs ' . DBIx::Class::Schema::Loader::Optional::Dependencies->req_missing_for('test_pod')
+ }
+}
all_pod_files_ok();
+
+# vim:tw=0 sw=4 et sts=4: