projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correct test definition order
[irspy-moved-to-github.git]
/
t
/
ZOOM-IRSpy.t
diff --git
a/t/ZOOM-IRSpy.t
b/t/ZOOM-IRSpy.t
old mode 100644
(file)
new mode 100755
(executable)
index
2ed94b3
..
5847b0b
--- a/
t/ZOOM-IRSpy.t
+++ b/
t/ZOOM-IRSpy.t
@@
-1,11
+1,17
@@
# change 'tests => 1' to 'tests => last_test_to_print';
# change 'tests => 1' to 'tests => last_test_to_print';
-use Test::More qw(no_plan);
-
BEGIN {
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.
# 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.
@@
-17,7
+23,7
@@
my $irspy_to_zeerex_xsl = 'xsl/irspy2zeerex.xsl';
$ZOOM::IRSpy::irspy_to_zeerex_xsl = $irspy_to_zeerex_xsl
if $irspy_to_zeerex_xsl;
$ZOOM::IRSpy::irspy_to_zeerex_xsl = $irspy_to_zeerex_xsl
if $irspy_to_zeerex_xsl;
-my $dbname = 'localhost:8018/IR-Explain---1';
+my $dbname = ZOOM::IRSpy::connect_to_registry();
my $spy = new ZOOM::IRSpy( $dbname, "admin", "fruitbat" );
isa_ok( $spy, 'ZOOM::IRSpy' );
my $spy = new ZOOM::IRSpy( $dbname, "admin", "fruitbat" );
isa_ok( $spy, 'ZOOM::IRSpy' );
@@
-25,6
+31,7
@@
isa_ok( $spy, 'ZOOM::IRSpy' );
# test for failure if template not exists
eval {
$ZOOM::IRSpy::irspy_to_zeerex_xsl = '/nonexist';
# test for failure if template not exists
eval {
$ZOOM::IRSpy::irspy_to_zeerex_xsl = '/nonexist';
+ $ZOOM::IRSpy::xslt_max_depth = 100;
$spy = new ZOOM::IRSpy( $dbname, "admin", "fruitbat" );
};
$spy = new ZOOM::IRSpy( $dbname, "admin", "fruitbat" );
};