|
@@ -1,7 +1,7 @@
|
|
|
use strict;
|
|
use strict;
|
|
|
use warnings;
|
|
use warnings;
|
|
|
|
|
|
|
|
-use Test::More 'tests' => 18;
|
|
|
|
|
|
|
+use Test::More 'tests' => 20;
|
|
|
|
|
|
|
|
#check plan mode
|
|
#check plan mode
|
|
|
my @args = ($^X,qw{bin/testrail-tests --apiurl http://testrail.local --user "test@fake.fake" --password "fake" -j TestProject -p 'GosPlan' -r 'Executing the great plan' -m t --config testConfig --mock --no-recurse});
|
|
my @args = ($^X,qw{bin/testrail-tests --apiurl http://testrail.local --user "test@fake.fake" --password "fake" -j TestProject -p 'GosPlan' -r 'Executing the great plan' -m t --config testConfig --mock --no-recurse});
|
|
@@ -60,4 +60,11 @@ is($? >> 8, 0, "Exit code OK when filtering by status");
|
|
|
chomp $out;
|
|
chomp $out;
|
|
|
is($out,'',"Gets no tests correctly when filtering by wrong status");
|
|
is($out,'',"Gets no tests correctly when filtering by wrong status");
|
|
|
|
|
|
|
|
|
|
+#Verify no-match returns non path
|
|
|
|
|
+@args = ($^X,qw{bin/testrail-tests --apiurl http://testrail.local --user "test@fake.fake" --password "fake" -j TestProject -r 'TestingSuite' --mock});
|
|
|
|
|
+$out = `@args`;
|
|
|
|
|
+is($? >> 8, 0, "Exit code OK running no plan mode, no recurse");
|
|
|
|
|
+chomp $out;
|
|
|
|
|
+like($out,qr/\nskipall\.test$/,"Gets test correctly in no plan mode, no recurse");
|
|
|
|
|
+
|
|
|
|
|
|