X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fstrictures.t;h=7f67779439b4d26df1ff89f5dbab0fe8ebf73c2a;hb=cb551b07;hp=adfd9a71f0d60b546c041358a3b04f9c79796865;hpb=afb8fc5295f37e051ab76636d1f73538f42edc08;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/strictures.t b/xt/strictures.t index adfd9a7..7f67779 100644 --- a/xt/strictures.t +++ b/xt/strictures.t @@ -1,19 +1,13 @@ +use DBIx::Class::Optional::Dependencies -skip_all_without => 'test_strictures'; + use warnings; use strict; use Test::More; +use File::Find; use lib 't/lib'; use DBICTest; -unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_strictures') ) { - my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_strictures'); - $ENV{RELEASE_TESTING} - ? die ("Failed to load release-testing module requirements: $missing") - : plan skip_all => "Test needs: $missing" -} - -use File::Find; - # The rationale is - if we can load all our optdeps # that are related to lib/ - then we should be able to run # perl -c checks (via syntax_ok), and all should just work @@ -33,6 +27,8 @@ find({ maint/Makefile.PL.inc/.+ # all the maint inc snippets are auto-strictured | t/lib/DBICTest/Util/OverrideRequire.pm # no stictures by design (load order sensitive) + | + lib/DBIx/Class/Optional/Dependencies.pm # no stictures by design (load spee sensitive) )$}x; my $f = $_;