[libparse-debianchangelog-perl] 30/52: Documentation.t: Compute number of tests automatically

Intrigeri intrigeri at moszumanska.debian.org
Sun May 24 12:37:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch master
in repository libparse-debianchangelog-perl.

commit e3ab2b035eee6bfc01bf80fc5cf5b64c80e97410
Author: Frank Lichtenheld <frank at lichtenheld.de>
Date:   Sat Sep 1 03:14:42 2007 +0200

    Documentation.t: Compute number of tests automatically
    
    use all_pod_files() to compute the number of tests automatically
    so that I don't have to update the file if the number changes.
---
 t/Documentation.t | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/t/Documentation.t b/t/Documentation.t
index 7660ed9..935b849 100644
--- a/t/Documentation.t
+++ b/t/Documentation.t
@@ -3,9 +3,11 @@
 use strict;
 use warnings;
 
-use Test::More tests => 11;
+use Test::More;
 use Test::Pod 1.00;
 
+plan tests => 5+all_pod_files();
+
 # don't use all_pod_files_ok since we can't plan() then previously
 foreach (all_pod_files()) {
     pod_file_ok( $_, "POD $_ ok" );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libparse-debianchangelog-perl.git



More information about the Pkg-perl-cvs-commits mailing list