do not skip any tests in author mode - die instead!
[gitmo/MooseX-Storage.git] / t / 040_basic_utils.t
index 8d2e299..a969836 100644 (file)
@@ -62,6 +62,7 @@ SKIP: {
         MooseX::Storage::Util->peek($json => ('format' => 'JSON'))
     };
     if ($@ =~ /^Could not load JSON module because/) {
+        die 'No JSON module found' if $ENV{AUTHOR_TESTING};
         skip "No JSON module found", 1;
     }
 
@@ -76,6 +77,7 @@ SKIP: {
     if ($@ =~ /^Could not load YAML module because/
         or $@ =~ /^Can't locate Best/
     ) {
+        die 'No YAML module found' if $ENV{AUTHOR_TESTING};
         skip "No YAML module found", 1;
     }