1. Fabrice Gabolde
  2. Lembas

Commits

Fabrice Gabolde  committed 4a471aa

lembas utility makes it easier to test a spec.

  • Participants
  • Parent commits 71fe2de
  • Branches default

Comments (0)

Files changed (1)

File bin/lembas

View file
  • Ignore whitespace
+#!perl
+
+use strict;
+use warnings;
+use 5.010;
+use Carp;
+
+use Lembas;
+use Test::More;
+use IO::File;
+
+foreach my $filename (@ARGV) {
+
+    my $spec = IO::File->new($filename, 'r')
+        or die "Cannot open spec file at '$filename': $!";
+    
+    my $lembas = Lembas->new_from_test_spec(
+        handle => $spec);
+    $lembas->run;
+
+}
+
+done_testing;