[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-qa
Subject:    Re: Calling All Test:: Authors
From:       Ovid <publiustemp-perlqa3 () yahoo ! com>
Date:       2009-06-30 15:35:48
Message-ID: 736275.38067.qm () web65715 ! mail ! ac4 ! yahoo ! com
[Download RAW message or body]


----- Original Message ----

> From: Ricardo SIGNES <perl.qa@rjbs.manxome.org>
> 
> I updated my Test:: libraries to Test::Builder->new in their test routines,
> instead, as that's what I thought the original wisdom was.  Is that still
> okay?  (I did not add subtest-specific tests.)
> 
> That is, I turned:
> 
> my $TEST = Test::Builder->new;
> sub is_baloney { $TEST->ok('delicious') }
> 
> into:
> 
> sub is_baloney {
> my $TEST = Test::Builder->new;
> $TEST->ok('delicious');
> }

Currently this should be fine as all the builder() method does is call \
Test::Builder->new (and that's what I did in Test::JSON, to be honest).  I can't say \
whether or not this behavior will change in the future.  I just used the information \
passed to me by Schwern and by the Test::Builder::Module documentation.

 
Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic