Re: Revert use_ok() change to allow lexical effects?

Mike Doherty <[email protected]>
Newsgroups gmane.comp.lang.perl.quality-assurance
Message-ID <[email protected]>
On 12-04-10 05:59 PM, Leon Timmermans wrote:
> On Tue, Apr 10, 2012 at 11:52 PM, Mike Doherty <[email protected]> wrote:
>> I don't see any discouragement in the documentation... and what's wrong
>> with use_ok to begin with?
> 
> If it fails, the module may not be loaded, or partially loaded. In
> such circumstances, testing the rest of the code can give very
> confusing results. It doesn't make sense to continue testing usually.

I typically use_ok(...) or BAIL_OUT. If that's the only way to use
use_ok safely, then maybe it should do that for you automatically.

-Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.