1. Toby Inkster
  2. p5-moosex-abcd

Commits

Toby Inkster  committed ea1a1e8

update xt tests

  • Participants
  • Parent commits 1411d77
  • Branches default

Comments (0)

Files changed (3)

File xt/02pod_coverage.t

View file
  • Ignore whitespace
+use XT::Util;
 use Test::More;
 use Test::Pod::Coverage;
 
-my @modules = qw(MooseX::ABCD);
-pod_coverage_ok($_, "$_ is covered") for @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/05tabs.t

View file
  • Ignore whitespace
+use Test::Tabs;
+all_perl_files_ok('lib');

File xt/06versions.t

View file
  • Ignore whitespace
+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();
+}
+