Reorganize runmode detection a bit
[dbsrgits/DBIx-Class.git] / xt / notabs.t
CommitLineData
281738a4 1use warnings;
2use strict;
3
4use Test::More;
281738a4 5use lib 't/lib';
6use DBICTest;
a8064486 7
a8064486 8# Don't run tests for installs
39c9c72d 9if ( DBICTest::RunMode->is_plain ) {
281738a4 10 plan( skip_all => "Author tests not required for installation" );
11}
d146b340 12
13require DBIx::Class;
14unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_notabs') ) {
15 my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_notabs');
39c9c72d 16 (! DBICTest::RunMode->is_plain && ! DBICTest::RunMode->is_smoker )
d146b340 17 ? die ("Failed to load release-testing module requirements: $missing")
18 : plan skip_all => "Test needs: $missing"
a8064486 19}
20
f90896ae 21Test::NoTabs::all_perl_files_ok(
22 qw/t xt lib script/,
39c9c72d 23 DBICTest::RunMode->is_author ? ('maint') : (),
f90896ae 24);
281738a4 25
f90896ae 26# FIXME - need to fix Test::NoTabs - doesn't work with done_testing
d146b340 27#done_testing;