blob: 69542815a0a24d4cee791668b14e3bdd39e53dc7 [file] [log] [blame]
Akron653461e2021-09-20 13:58:08 +02001use Test::More;
2use Test::Mojo;
3use Test::Output;
4
5eval {
6 require KorAP::XML::TEI;
7 1;
8} || do {
9 plan skip_all => "KorAP::XML::TEI is not installed";
10};
11
12my $t = Test::Mojo->new(Kalamar => {
13 Kalamar => {
14 plugins => ['Tei2KorAPXML']
15 }
16});
17
18my $app = $t->app;
19
20my $cmds = $app->commands;
21
22ok(grep/::Tei2KorAPXML/, @{$cmds->namespaces}, 'Namespace is set');
23
24stdout_like(
25 sub {
26 $cmds->run('tei2korapxml','-v');
27 },
28 qr{cat corpus\.i5\.xml}
29);
30
31done_testing;
32
331;