Greg Sabino Mullane schrieb am 29.03.2011 um 17:17 (-0400):
> On Tue, Mar 29, 2011 at 10:46:20PM +0200, Michael Ludwig wrote:
> ...
> > my $tkn = $hu->token;   # (1) Can't carry on without the token
> > like $tkn, qr/abc/;     # (2) Useless carrying on if this fails.
> 
> One thing I've done is defer the plan until I can ensure the basic 
> prerequesites for the test  is met.

That's very useful, I'll add it to my repertoire. Thanks!

> my $dbh = connect_database();
> 
> if (! $dbh) {
>     plan skip_all => 'Connection to database failed, cannot continue testing';
> }
> …
> plan tests => 67;

-- 
Michael Ludwig

Reply via email to