Skip to content

Commit

Permalink
exit on missing requirements first, to prevent miscounting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Mar 6, 2013
1 parent a490c2c commit 2fb24b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changes
Expand Up @@ -2,6 +2,8 @@ Revision history for {{$dist->name}}

{{$NEXT}}
- fixed bad link in 'SEE ALSO'
- fixed test failure due to bad plan when MooseX::Types is not
available

0.002 2013-03-04 10:43:05 PST-0800 (Karen Etheridge)
- fix extraction of type name from MooseX::Types types
Expand Down
12 changes: 6 additions & 6 deletions t/03-moosex-types.t
Expand Up @@ -2,18 +2,18 @@ use strict;
use warnings FATAL => 'all';

use Test::Tester 0.108;
use Test::More tests => 16;
use Test::NoWarnings 1.04 ':early';
use Test::Fatal;

use Test::Deep;
use Test::Deep::Type;

# FIXME: we should be able to pass an import arg to Test::Requires
BEGIN {
use Test::Requires 'MooseX::Types::Moose';
MooseX::Types::Moose->import('Str');
}
use Test::More tests => 16;
use Test::NoWarnings 1.04 ':early';
use Test::Fatal;
use Test::Deep;

use Test::Deep::Type;

check_tests(
sub {
Expand Down

0 comments on commit 2fb24b0

Please sign in to comment.