Skip to content

Commit

Permalink
Can't run some of the tests without pandoc installed
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Oct 27, 2023
1 parent c59170e commit 50b11be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/04-run.t
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 5 additions & 0 deletions t/05-vars.t
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 50b11be

Please sign in to comment.