RE: thinking about variable context for like()

2003-11-19 Thread Potozniak, Andrew
> -Original Message-
> From: Michael G Schwern [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 18, 2003 8:03 PM
> To: Potozniak, Andrew
> Cc: 'chromatic'; [EMAIL PROTECTED]
> Subject: Re: thinking about variable context for like()
> 
> 
> On Tue, Nov 18, 2003 at 12:23:19PM -0500, Potozniak, Andrew wrote:
> > Is anyone going to develop this, or is all of this just 
> > wishfull/theorhetical thinking?
> 
> Boy, that sounds like a volunteer if I ever heard one!
> 
> Anyhow, it looks like Test::LongString is what you want.  Now 
> say thank you to Rafael. :)

Uh.thank you Rafael!  Anyway I was just giving my two cents on a
possible implementation to see what the "general" perl-qa community thought
about it.  

> 
> 
> > If someone will develop this are we going to add it to Test::More
> 
> What's this "we" stuff, bub? :)
> 
> No new functions are going into Test::More.  The interface is 
> pretty much 
> done.  This is ok because...
> 
> 
> > or create a module wrapped around Test::More with the added 
> > functionality?
> 
> ...you don't write wrappers around Test::More.  You use the 
> same underlying class Test::More does: Test::Builder.  This 
> includes, oddly enough, like()!
> 
> 
> -- 
> Michael G Schwern[EMAIL PROTECTED]  
> http://www.pobox.com/~schwern/
> Do not try comedy at home!  
> Milk & Cheese are advanced experts!  Attempts at comedy can 
> be dangerously unfunny!
> 


Re: Using environment variables to control long running tests (again)

2003-11-19 Thread Fergal Daly
On Wed, Nov 19, 2003 at 01:45:31PM +1100, Andrew Savige wrote:
> I think the two environment variables can happily coexist as
> shown in the table below:
> 
>   PERL_SMOKE   PERL_SKIP_LONG_TESTS
> Naive User0 0
> Contrary User 1 1
> Impatient User0 1
> Robot 1 0
> 
> Naive: Gets default behaviour desired by CPAN author
> Contrary:  Gets opposite of default behaviour desired by CPAN author
> Impatient: Never runs long tests
> Robot: Always runs long tests

Since we've got a very natural 3 valued logic here, you can achieve the same
with

PERL_SKIP_LONG_TESTS
undef = do what the author wants
1 = skip
0 = don't skip

Which makes sense - do what the user says if they actually said something
otherwise do what the author says,

F


Re: Using environment variables to control long running tests (again)

2003-11-19 Thread Randal L. Schwartz
> "Michael" == Michael G Schwern <[EMAIL PROTECTED]> writes:

Michael> Disabling tests for subjective reasons (they take "too long",
Michael> they don't test critical functionality, etc...) is a slippery
Michael> slope.

But there are clearly tests that are "tip of the iceberg" as a safety
check to ensure that my environment is "close enough" to your devel
environment to safely install a tool, versus tests that are "check all
functionality" to ensure that during your coding, you don't hose up
some existing action.

I want to be able to run "tip of the iceberg" tests while installing.
And that's all.

Michael>   For that reason I'd agree with Curtis and say that
Michael> everything is always run by default and users can then elect
Michael> what to turn off.  PERL_SKIP_LONG_TESTS seems like a clear
Michael> name.

As long as it's consistent, and I can set it easily in CPAN.pm without
having to write a wrapper (via make_arg).

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


Re: Using environment variables to control long running tests (again)

2003-11-19 Thread Michael G Schwern
On Wed, Nov 19, 2003 at 07:17:46AM -0800, Randal L. Schwartz wrote:
> Michael>   For that reason I'd agree with Curtis and say that
> Michael> everything is always run by default and users can then elect
> Michael> what to turn off.  PERL_SKIP_LONG_TESTS seems like a clear
> Michael> name.
> 
> As long as it's consistent, and I can set it easily in CPAN.pm without
> having to write a wrapper (via make_arg).

Consistency?  I think you've chosen the wrong programming language, sir!


-- 
Michael G Schwern[EMAIL PROTECTED]  http://www.pobox.com/~schwern/
The plot seems complicated at first but with a little study it
becomes hopelessly confused.
- Peter Schickele, "Hansel and Gretel and Ted and Alice"