TestRail-Utils.t 535 B

123456789101112131415
  1. use strict;
  2. use warnings;
  3. use Test::More 'tests' => 4;
  4. use Test::Fatal;
  5. use TestRail::Utils;
  6. use File::Basename qw{dirname};
  7. my ($apiurl,$user,$password);
  8. is(exception {($apiurl,$password,$user) = TestRail::Utils::parseConfig(dirname(__FILE__))}, undef, "No exceptions thrown by parseConfig");
  9. is($apiurl,'http://hokum.bogus',"APIURL parse OK");
  10. is($user,'zippy',"USER parse OK");
  11. is($password, 'happy', 'PASSWORD parse OK');
  12. #Regrettably, I have yet to find a way to print to stdin without eval, so userInput will remain untested.