Commits

Toby Inkster committed 3a81035

update xt

  • Participants
  • Parent commits 8e4c6ad

Comments (0)

Files changed (7)

File xt/02pod_coverage.config

+{ "skip_all": "command-line interface is documented, but not internals" }

File xt/02pod_coverage.t

+use XT::Util;
 use Test::More;
 use Test::Pod::Coverage;
 
-my @modules = 
-	map { "P5U::Lib::$_" }
-	qw( AutoProve DebianRelease Reprove Testers TestPod Version Whois );
-pod_coverage_ok($_, "$_ is covered")
-	foreach @modules;
-done_testing(scalar @modules);
+plan skip_all => __CONFIG__->{skip_all}
+	if __CONFIG__->{skip_all};
 
+if ( __CONFIG__->{modules} )
+{
+	my @modules = @{ __CONFIG__->{modules} };
+	pod_coverage_ok($_, "$_ is covered") for @modules;
+	done_testing(scalar @modules);
+}
+else
+{
+	all_pod_coverage_ok();
+}
+

File xt/03meta_uptodate.config

+{ "package": "P5U" }

File xt/03meta_uptodate.t

+use XT::Util;
 use Test::More tests => 1;
 use Test::RDF::DOAP::Version;
-doap_version_ok('P5U', 'P5U');
+doap_version_ok(__CONFIG__->{package}, __CONFIG__->{version_from});
 
+use Test::Tabs;
+all_perl_files_ok();

File xt/06versions.t

+use XT::Util;
+use Test::More;
+use Test::HasVersion;
+
+plan skip_all => __CONFIG__->{skip_all}
+	if __CONFIG__->{skip_all};
+
+if ( __CONFIG__->{modules} )
+{
+	my @modules = @{ __CONFIG__->{modules} };
+	pm_version_ok($_, "$_ is covered") for @modules;
+	done_testing(scalar @modules);
+}
+else
+{
+	all_pm_version_ok();
+}
+

File xt/07spelling.t

+use Test::Spellunker;
+load_dictionary("$ENV{HOME}/perl5/stopwords.txt");
+all_pod_files_spelling_ok();