On Tue, 10 Jun 2008, Eric Roode wrote:
On Tue, Jun 10, 2008 at 11:20 AM, Dave Rolsky <[EMAIL PROTECTED]> wrote:
[...]
You don't need to make these tests run for the end user to get the point.
All of my dists (should) ship with a pod.t and pod-coverage.t that only runs
in "maintainer mode".
How do you do that, by the way? How do you set it up so the test
suite knows it's you and not an end-user?
Here's my pod.t ...
use strict;
use warnings;
use Test::More;
plan skip_all => 'This test is only run for the module author'
unless -d '.svn' || $ENV{IS_MAINTAINER};
eval "use Test::Pod 1.14";
plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
all_pod_files_ok();
That second skip_all is kind of silly, since if you are the maintainer,
you should have the Test::Pod module, but I suppose if someone grabs the
module from svn and doesn't have it, it gives them a handy message.
-dave
/*==========================
VegGuide.Org
Your guide to all that's veg
==========================*/