Made Survey Test Suite feature was dependent on TAP::Parser and TAP::Parser::Aggregator

This commit is contained in:
Patrick Donelan 2009-05-29 01:04:45 +00:00
parent d37da79bbd
commit 1a4b673843
2 changed files with 39 additions and 5 deletions

View file

@ -25,6 +25,12 @@ plan tests => 85;
my ( $s, $t1 );
eval 'use TAP::Parser; use TAP::Parser::Aggregator';
SKIP: {
skip "Unable to load TAP::Parser and TAP::Parser::Aggregator", 1 if $@;
#----------------------------------------------------------------------------
# put your tests here
use_ok('WebGUI::Asset::Wobject::Survey::Test');
@ -683,6 +689,7 @@ sub try_it {
}
ok( !$parser->has_problems == !$opts->{fail}, ( $opts->{fail} ? "Fails" : "Passes" ) . ' as expected' );
}
}
#----------------------------------------------------------------------------
# Cleanup