Skip to content

Commit 01652c4

Browse files
committed
skip XML test when its not installed (I need to work out how to deal with these sometimes needed important deps - i fear the right way to do it is to split the AnyData Formatters into separate modules, so users can install what they need - it would be horrible to require installing XML if you just want simple text parse
1 parent a6e5350 commit 01652c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/xml.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ use strict;
33
use warnings;
44

55
use Test::More;
6+
7+
eval 'use XML::Twig;';
8+
plan( skip_all => 'XML::Twig not installed; skipping' ) if $@;
9+
10+
611
plan tests => 3;
712

813
use AnyData;

0 commit comments

Comments
 (0)