Bläddra i källkod

Fix travis builds, also silence some tests

George S. Baugh 11 år sedan
förälder
incheckning
fb5badd7be
4 ändrade filer med 14 tillägg och 2 borttagningar
  1. 1 1
      .travis.yml
  2. 1 1
      Changes
  3. 6 0
      t/arg_types.t
  4. 6 0
      t/server_dead.t

+ 1 - 1
.travis.yml

@@ -17,7 +17,7 @@ before_install:
    - git config --global user.name "TravisCI"
    - git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org"
 install:
-    - cpanm --quiet --notest --skip-satisfied Test::Perl::Critic Test::Spelling Test::NoTabs Test::EOL Carp Clone Data::Validate::URI File::Basename Getopt::Long HTTP::Headers HTTP::Request HTTP::Response IO::Interactive::Tiny Cpanel::JSON::XS JSON::MaybeXS LWP::UserAgent Scalar::Util TAP::Harness TAP::Parser Term::ANSIColor Test::LWP::UserAgent Try::Tiny
+    - cpanm --quiet --notest --skip-satisfied Test::Perl::Critic Test::Spelling Test::NoTabs Test::EOL Carp Clone Data::Validate::URI File::Basename Getopt::Long HTTP::Headers HTTP::Request HTTP::Response IO::Interactive::Tiny Cpanel::JSON::XS JSON::MaybeXS LWP::UserAgent Scalar::Util TAP::Harness TAP::Parser Term::ANSIColor Test::LWP::UserAgent Try::Tiny IO::Capture::Stdout
 branches:
    only:
       - /^build/

+ 1 - 1
Changes

@@ -1,6 +1,6 @@
 Revision history for Perl module TestRail::API
 
-0.014 2015-01-?? TEODESIAN
+0.014 2015-01-23 TEODESIAN
     - Fixed issue where testrail-report would not parse the results of multiple tests in a TAP file or stream.
     - Fixed issue where testrail-report would erroneously attempt to report the results of subtests.
     - Parse TODO/SKIP messages correctly, add todo reason to the test notes

+ 6 - 0
t/arg_types.t

@@ -7,6 +7,10 @@ use Test::Fatal;
 use Class::Inspector;
 use Test::LWP::UserAgent;
 use HTTP::Response;
+use IO::Capture::Stderr;
+
+my $capture_out = IO::Capture::Stderr->new();
+$capture_out->start;
 
 my $tr = TestRail::API->new('http://hokum.bogus','bogus','bogus',1);
 $tr->{'browser'} = Test::LWP::UserAgent->new();
@@ -146,3 +150,5 @@ isnt(exception {$tr->getCaseByName(1,1,1)}, undef,'getCaseByName with 3 args ret
 #4 arg functions
 is(exception {$tr->getCaseByName(1,1,1,'hug')}, undef,'getCaseByName with 4 args returns no error');
 
+$capture_out->stop;
+

+ 6 - 0
t/server_dead.t

@@ -10,6 +10,10 @@ use Test::Fatal;
 use Class::Inspector;
 use Test::LWP::UserAgent;
 use HTTP::Response;
+use IO::Capture::Stderr;
+
+my $capture_out = IO::Capture::Stderr->new();
+$capture_out->start;
 
 my $tr = TestRail::API->new('http://hokum.bogus','bogus','bogus',1);
 $tr->{'browser'} = Test::LWP::UserAgent->new();
@@ -69,3 +73,5 @@ is($tr->getUserByID(1),0,'getUserByID returns error');
 is($tr->getUserByName('zap'),0,'getUserByName returns error');
 is($tr->getUsers(),-500,'getUsers returns error');
 is($tr->getConfigurations(1),-500,'getConfigurations returns error');
+
+$capture_out->stop();