Permalink
Browse files

Skip router tests if Searcher not installed.

  • Loading branch information...
1 parent b7045cd commit a2ce66447cc53ac73b5d8a9ef170ff7686f82c38 @theory theory committed May 18, 2011
Showing with 8 additions and 4 deletions.
  1. +2 −0 Changes
  2. +6 −4 t/router.t
View
@@ -1,6 +1,8 @@
Revision history for Perl extension PGXN::Site
0.7.4
+ - The router tests are now skipped if PGXN::API::Searcher is not
+ installed.
0.7.3 2011-05-18T17:44:31
- Fixed alignment of definition list items on user page. Reported by
View
@@ -3,17 +3,19 @@
use 5.10.0;
use utf8;
BEGIN { $ENV{EMAIL_SENDER_TRANSPORT} = 'Test' }
-use Test::More tests => 381;
+use Test::More;
#use Test::More 'no_plan';
+eval "use PGXN::API::Searcher";
+plan skip_all => "PGXN::API::Searcher required for router testing" if $@;
+plan tests => 381;
+
use Plack::Test;
use HTTP::Request::Common;
use Test::File::Contents;
use Test::MockModule;
use Encode;
-BEGIN {
- use_ok 'PGXN::Site::Router' or die;
-}
+use_ok 'PGXN::Site::Router' or die;
local $@;
eval { PGXN::Site::Router->app };

0 comments on commit a2ce664

Please sign in to comment.