diff --git a/t/04-run.t b/t/04-run.t index 63ac3d6..9eb4870 100644 --- a/t/04-run.t +++ b/t/04-run.t @@ -6,6 +6,11 @@ use FindBin '$Bin'; use Test::More; use App::Aphra; +# Easy way to bail out if the pandoc executable isn't installed +use Pandoc; +plan skip_all => "pandoc isn't installed; this module won't work" + unless pandoc; + chdir("$Bin/data1"); @ARGV = ('build'); diff --git a/t/05-vars.t b/t/05-vars.t index 69e1fd9..52f0e7b 100644 --- a/t/05-vars.t +++ b/t/05-vars.t @@ -6,6 +6,11 @@ use FindBin '$Bin'; use Test::More; use App::Aphra; +# Easy way to bail out if the pandoc executable isn't installed +use Pandoc; +plan skip_all => "pandoc isn't installed; this module won't work" + unless pandoc; + chdir("$Bin/data2"); @ARGV = ('build');