From 20c06e6cc40ff498e12cc5a928919ce914ba9512 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Fri, 27 Mar 2009 13:05:30 +0100 Subject: skip tests when modules are not present --- t/03-html.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 't/03-html.t') diff --git a/t/03-html.t b/t/03-html.t index 8504c90..27cac64 100644 --- a/t/03-html.t +++ b/t/03-html.t @@ -1,5 +1,10 @@ #!perl -use Test::Most 'no_plan','die'; +use Test::Most 'die'; +BEGIN { +eval 'use HTML::Element'; +plan skip_all => 'HTML::Element needed for this test' if $@; +} +plan tests => 1; use strict; use warnings; use Tree::Template::Declare options => {builder => '+HTML_Element'}; -- cgit v1.2.3