|
|
@@ -10,10 +10,10 @@ use Scalar::Util qw{reftype};
|
|
|
use TestRail::API;
|
|
|
use Test::LWP::UserAgent::TestRailMock;
|
|
|
use Test::Rail::Parser;
|
|
|
-use Test::More 'tests' => 124;
|
|
|
+use Test::More 'tests' => 125;
|
|
|
use Test::Fatal qw{exception};
|
|
|
use Test::Deep qw{cmp_deeply};
|
|
|
-use Capture::Tiny qw{capture};
|
|
|
+use Capture::Tiny qw{capture capture_stderr};
|
|
|
|
|
|
#Same song and dance as in TestRail-API.t
|
|
|
my $apiurl = $ENV{'TESTRAIL_API_URL'};
|
|
|
@@ -591,3 +591,16 @@ $opts->{'sections'} = [];
|
|
|
|
|
|
$res = exception { $tap = Test::Rail::Parser->new($opts) };
|
|
|
is($res,undef,"TR Parser runs all the way through when spawning configurations");
|
|
|
+
|
|
|
+$fcontents = "
|
|
|
+todo_pass.test ..
|
|
|
+ok 1 - STORAGE TANKS SEARED #TODO todo pass
|
|
|
+# goo
|
|
|
+Bail out! #YOLO
|
|
|
+";
|
|
|
+undef $opts->{'source'};
|
|
|
+$opts->{'tap'} = $fcontents;
|
|
|
+
|
|
|
+#Issue 143
|
|
|
+my $warns = capture_stderr { $tap = Test::Rail::Parser->new($opts) };
|
|
|
+is($warns, '', "No warnings parsing TAP with undef plans");
|