blob: 52a0791c7d1ea087cea73c71914267f52b7f4343 [file] [log] [blame]
Akron6227fba2021-09-20 14:21:41 +02001use Test::More;
2use Test::Mojo;
3use Test::Output;
4eval {
5 require KorAP::XML::Krill;
6 1;
7} || do {
8 plan skip_all => "KorAP::XML::Krill is not installed";
9};
10my $t = Test::Mojo->new(Kalamar => {
11 Kalamar => {
12 plugins => ['KorAPXML2Krill']
13 }
14});
15my $app = $t->app;
16my $cmds = $app->commands;
17ok(grep/::KorAPXML2Krill/, @{$cmds->namespaces}, 'Namespace is set');
18stdout_like(
19 sub {
20 $cmds->run('korapxml2krill','-v');
21 },
22 qr{\[archive\|extract\]}
23);
24done_testing;
251;