Revision history for {{$dist->name}}
{{$NEXT}}
+ - warnings tests bypassed during installation
0.11 2013-06-23 09:22:04 PDT-0700 (Karen Etheridge)
- bump prereq version for MooseX::Types::Path::Tiny to ensure a
use strict;
use warnings FATAL => 'all';
-use Test::More tests => 2;
-use Test::Warnings;
+use Test::More;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
BEGIN {
use_ok('MooseX::ConfigFromFile');
}
+
+done_testing;
use strict;
use warnings FATAL => 'all';
-use Test::More tests => 3;
+use Test::More;
use Test::Fatal;
-use Test::Warnings;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
{
package A;
ok(B->does('MooseX::ConfigFromFile'), 'B does ConfigFromFile');
is(exception { B->new_with_config() }, undef, 'B->new_with_config lives');
+done_testing;
use strict;
use warnings FATAL => 'all';
-use Test::More tests => 7;
-use Test::Warnings;
+use Test::More;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
use Test::Fatal;
my %config_from_file_args;
is(exception { C->new_with_config() }, undef, 'C->new_with_config lives');
is($config_from_file_args{C}, '/dir/C', 'C configfile attr default sub is called, with classname');
+done_testing;
use strict;
use warnings FATAL => 'all';
-use Test::More tests => 2;
-use Test::Warnings;
+use Test::More;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
use Test::Without::Module 'MooseX::Getopt';
'the Getopt attr trait is not added if not installed',
);
+done_testing;
use warnings FATAL => 'all';
use Test::Requires 'MooseX::Getopt'; # skip all if not installed
-use Test::More tests => 3;
-use Test::Warnings;
+use Test::More;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
{
package Foo::Options;
'when MooseX::Getopt is loaded, the Getopt attr trait is still added',
);
+done_testing;
use strict;
use warnings FATAL => 'all';
-use Test::More tests => 49;
+use Test::More;
use Test::Fatal;
use Test::Deep '!blessed';
-use Test::Warnings;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
use Scalar::Util 'blessed';
my %loaded_file;
'no exceptions',
);
+done_testing;