{{$NEXT}}
- silence a warning in tests if the user does not have YAML::XS installed
(thanks for the report, Getty!)
+ - fix off-by-one issues in test plans if optional requirements are not met
0.48 2012-12-23 18:08:04 PST-0800
- documentation and tests amended to prefer usage of 'trait' over 'metaclass'
use strict;
use warnings;
+use Test::Requires 'MooseX::ConfigFromFile'; # skip all if not installed
use Test::More tests => 38;
use Test::Fatal;
use File::Spec;
use Test::NoWarnings 1.04 ':early';
-use Test::Requires 'MooseX::ConfigFromFile';
-
{
package App;
use strict;
use warnings;
+use Test::Requires { 'MooseX::SimpleConfig' => 0.07 }; # skip all if not installed
use Test::More tests => 2;
+use Test::Warn 0.21;
+use Test::Fatal 0.003;
-use Test::Requires {
- 'MooseX::SimpleConfig' => 0.07, # skip all if not installed
-};
use Test::NoWarnings 1.04 ':early';
my $fail_on_exit = 1;
1;
}
-use Test::Warn 0.21;
-use Test::Fatal 0.003;
-
END {
ok(!$fail_on_exit, 'getoptions() lives');
use strict;
use warnings;
-use Test::Requires
- 'MooseX::SimpleConfig'; # skip all if not installed
-
# respect the configfile value passed into the constructor.
+use Test::Requires 'MooseX::SimpleConfig'; # skip all if not installed
use Test::More tests => 3;
use Test::NoWarnings 1.04 ':early';
use Path::Class; # exports file, dir