use Test::More; | |
use Test::Mojo; | |
use Test::Output; | |
eval { | |
require KorAP::XML::Krill; | |
1; | |
} || do { | |
plan skip_all => "KorAP::XML::Krill is not installed"; | |
}; | |
my $t = Test::Mojo->new(Kalamar => { | |
Kalamar => { | |
plugins => ['KorAPXML2Krill'] | |
} | |
}); | |
my $app = $t->app; | |
my $cmds = $app->commands; | |
ok(grep/::KorAPXML2Krill/, @{$cmds->namespaces}, 'Namespace is set'); | |
stdout_like( | |
sub { | |
$cmds->run('korapxml2krill','-v'); | |
}, | |
qr{\[archive\|extract\]} | |
); | |
done_testing; | |
1; |