X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=t%2FZOOM-IRSpy.t;h=5847b0b2f77ab1c5a5ec903663498d8e6d367fbd;hp=0da4aa0fae3f848cfc552919837fd94b499514df;hb=bede31050ee10e9a8a3dd20f91ab9d62e0f5af66;hpb=922431d5c98a82b37bba080d09ecde4fcbc0202e diff --git a/t/ZOOM-IRSpy.t b/t/ZOOM-IRSpy.t old mode 100644 new mode 100755 index 0da4aa0..5847b0b --- a/t/ZOOM-IRSpy.t +++ b/t/ZOOM-IRSpy.t @@ -1,11 +1,17 @@ # change 'tests => 1' to 'tests => last_test_to_print'; -use Test::More qw(no_plan); - BEGIN { - use_ok('ZOOM::IRSpy'); + system( "zoomsh", "-e", "open localhost:8018", "quit" ); + if ($?) { + print "1..0 # skip no zebra running on localhost:8018\n"; + exit; + } } +use Test::More tests => 3; +use lib './lib'; +use_ok('ZOOM::IRSpy'); + # Insert your test code below, the Test::More module is use()ed here so read # its man page ( perldoc Test::More ) for help writing this test script. @@ -25,7 +31,6 @@ isa_ok( $spy, 'ZOOM::IRSpy' ); # test for failure if template not exists eval { $ZOOM::IRSpy::irspy_to_zeerex_xsl = '/nonexist'; - $ZOOM::IRSpy::debug = 1; $ZOOM::IRSpy::xslt_max_depth = 100; $spy = new ZOOM::IRSpy( $dbname, "admin", "fruitbat" ); };