logo       

Re: planning at the end: msg#00496

Subject: Re: planning at the end
On 7/20/06, Andy Lester <andy@xxxxxxxxxxxx> wrote:

On Jul 20, 2006, at 2:19 PM, Adriano Ferreira wrote:

> was emitted, it would mean the test *should* tell the plan at the end.
> If it doesn't, it is a failure. I don't think this is no protection.
> It may be an improvement to 'no_plan' in certain circumstances.

What circumstance would that be?

Ok, that's weird. But it may occasionally have usefulness. Gabor
started the thread with the idea of having a test against web pages,
which he doesn't know how many at the beginning, but which may be
verified at the end - his count against Test::Builder count.

Think about Test::Pod::all_pod_files_ok() - when called, it plans by
computing the size of an array of files and then run individual tests.
But the files must be captured in the array, so this approach is too
expensive if you had a huge tree of sources. For similar testing
problems, processing could be done instead via an iterator like
File::Find or whatever. The array would not be built, but all sources
would be tested. The option nowadays for such solution is to have no
plan. But we may count easily and tell the plan later. That would be
handy if one believes the saying "Better late than never".

But that's just wondering and hand-waving.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe