blob: af3d408b4a5293dbffe03ed98951f037c36814c5 [file] [log] [blame]
Akronaaf4a832023-01-12 17:26:20 +01001use Test::More;
2use Test::Mojo;
3use Test::Output;
4
5my $script = `sh -c 'command -v conllu2korapxml'`;
6
7if ($script eq '') {
8 plan skip_all => "KorAP::XML::Krill is not installed";
9 exit;
10};
11
12my $t = Test::Mojo->new(Kalamar => {
13 Kalamar => {
14 plugins => ['KorAPXML2CoNLLU']
15 }
16});
17my $app = $t->app;
18my $cmds = $app->commands;
19ok(grep/::KorAPXML2CoNLLU/, @{$cmds->namespaces}, 'Namespace is set');
20stdout_like(
21 sub {
22 $cmds->run('conllu2korapxml','-v');
23 },
24 qr{zca15\.tree_tagger\.conllu}
25);
26stdout_like(
27 sub {
28 $cmds->run('korapxml2conllu','-v');
29 },
30 qr{zca15\.tree_tagger\.zip}
31);
32done_testing;
331;