From af20e55e615559761a4411cb669e552718df121c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 May 2011 14:18:49 +0200 Subject: Add Pod::Coverage test --- Build.PL | 1 + t/05-pod-compile.t | 8 ++++++++ t/06-pod-coverage.t | 12 ++++++++++++ t/10-pod-coverage.t | 8 -------- 4 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 t/05-pod-compile.t create mode 100644 t/06-pod-coverage.t delete mode 100644 t/10-pod-coverage.t diff --git a/Build.PL b/Build.PL index 2d9c370..a050147 100644 --- a/Build.PL +++ b/Build.PL @@ -11,6 +11,7 @@ my $build = Module::Build->new( 'Test::MockObject' => 0, 'Test::More' => 0, 'Test::Pod' => 0, + 'Test::Pod::Coverage' => 0, }, license => 'unrestricted', module_name => 'App::Raps2', diff --git a/t/05-pod-compile.t b/t/05-pod-compile.t new file mode 100644 index 0000000..3f6ae1a --- /dev/null +++ b/t/05-pod-compile.t @@ -0,0 +1,8 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use 5.010; +use Test::More; +use Test::Pod; + +all_pod_files_ok('bin/raps2'); diff --git a/t/06-pod-coverage.t b/t/06-pod-coverage.t new file mode 100644 index 0000000..a3e35eb --- /dev/null +++ b/t/06-pod-coverage.t @@ -0,0 +1,12 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +use Test::More; + +eval "use Test::Pod::Coverage 1.00"; + +plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD coverage" if $@; + +all_pod_coverage_ok(); diff --git a/t/10-pod-coverage.t b/t/10-pod-coverage.t deleted file mode 100644 index 3f6ae1a..0000000 --- a/t/10-pod-coverage.t +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; -use 5.010; -use Test::More; -use Test::Pod; - -all_pod_files_ok('bin/raps2'); -- cgit v1.2.3