blob: 52a0791c7d1ea087cea73c71914267f52b7f4343 [file] [log] [blame]
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;