Introduce korapxml2krill command
Change-Id: I2495b95a65eaea3dbb394a3ea98097c6636f6b47
diff --git a/t/plugin/korapxml2krill.t b/t/plugin/korapxml2krill.t
new file mode 100644
index 0000000..52a0791
--- /dev/null
+++ b/t/plugin/korapxml2krill.t
@@ -0,0 +1,25 @@
+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;