Skip to content

Commit

Permalink
Tests depend on YAML::XS /or/ YAML::Syck
Browse files Browse the repository at this point in the history
Can't be defined by Test::Requires as far as I know.

Closes #12.
  • Loading branch information
dboehmer committed Nov 2, 2016
1 parent a33a557 commit 1ae4c4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion t/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use strict;
use warnings;

use Test::More;
use Test::Requires 'YAML::XS';

# XS module load failure fatal in eval block -> eval string
eval "use YAML::XS; 1" || eval "use YAML::Syck; 1"
or plan skip_all => "YAML::XS or YAML::Syck needed for this test";

plan tests => 5;

Expand Down
5 changes: 4 additions & 1 deletion t/validation.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use strict;
use warnings;

use Test::More;
use Test::Requires 'YAML::XS';

# XS module load failure fatal in eval block -> eval string
eval "use YAML::XS; 1" || eval "use YAML::Syck; 1"
or plan skip_all => "YAML::XS or YAML::Syck needed for this test";

plan tests => 5;

Expand Down

0 comments on commit 1ae4c4f

Please sign in to comment.