X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=t%2FZOOM-IRSpy.t;h=6d84abc229d4c8536953cba9d8cf8567c0b0a196;hp=7d05d2d56f125dfa2c1269828d5deff247611ffd;hb=424768b20deaa345499363cc5050a77ce654c324;hpb=18d5b8086699227e7f19380a19d9c2e005ea7b96 diff --git a/t/ZOOM-IRSpy.t b/t/ZOOM-IRSpy.t index 7d05d2d..6d84abc 100644 --- a/t/ZOOM-IRSpy.t +++ b/t/ZOOM-IRSpy.t @@ -1,12 +1,19 @@ # change 'tests => 1' to 'tests => last_test_to_print'; -use Test::More tests => 3; - BEGIN { - use lib './lib'; - 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 +use lib './lib'; +use_ok('ZOOM::IRSpy'); + +plan tests => 3; + # 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.