avoid running test if xml::twig is not installed

master
Joey Hess 2013-05-09 10:46:25 -04:00
parent 792d3dd6f0
commit 5121198cb9
1 changed files with 8 additions and 1 deletions

View File

@ -3,9 +3,16 @@ package IkiWiki;
use warnings;
use strict;
use XML::Twig;
use Test::More;
BEGIN {
unless (eval { require XML::Twig }) {
eval q{
use Test::More skip_all => "XML::Twig is not available"
}
}
}
BEGIN { use_ok("IkiWiki"); }
BEGIN { use_ok("IkiWiki::Render"); }
BEGIN { use_ok("IkiWiki::Plugin::map"); }