[ANNOUCE] Test::Harness 2.25

2002-06-15 Thread Michael G Schwern
http://www.pobox.com/~schwern/src/Test-Harness-2.25.tar.gz Some bleadperl fixes for the tests under MacPerl were integrated, but in a slightly different form than the original patches. They've been simplified which eliminates the need for VMS specific code to fix the MacOS specific code.

Re: Test::Class... comments?

2002-06-16 Thread Michael G Schwern
On Sun, Jun 16, 2002 at 12:14:59AM +0100, Adrian Howard wrote: > 0) Do other people find this vaguely sane? Even possibly useful? Yes! xUnit with a Perl spin is something I've wanted for a long time. > 1) Is Test::Class the right name? If you ignore the "it doesn't say it's xUnit" problem,

Re: [ANNOUCE] Test::Harness 2.25

2002-06-16 Thread Michael G Schwern
On Sun, Jun 16, 2002 at 03:12:17AM -0400, Michael G Schwern wrote: > The Test::Harness::Straps part of 16938 has been defered until Pudge gets > back to be with some more data. The patch only addresses the symptoms, the > real problem is likely elsewhere. > http:[EMAIL PROTECTED]/m

Re: Fwd: Test::Class... comments?

2002-06-16 Thread Michael G Schwern
On Sun, Jun 16, 2002 at 08:28:26PM +0100, Adrian Howard wrote: > >Now, the way I do this at the moment is have num_method_tests() walk up > >the callstack until it finds a package that also isa Test::Class (in > >this > >case Base::Test) and then assume that is the class containing the method > >

Re: use_ok w/version numbers

2002-07-02 Thread Michael G Schwern
On Mon, Jul 01, 2002 at 09:57:24AM -0500, Andy Lester wrote: > I can do this: > > use PHP::Session 0.10; > > to ensure a version number, but I can't do this: > > use_ok( 'PHP::Session', '0.10' ); > > because I get this error: > > alester@flr4[~/tw/Dev]$ more Modules.t > #!/usr/bin/per

Re: [PATCH Test::More] Allow isa_ok( $classname, $parent )

2002-07-06 Thread Michael G Schwern
On Sun, Jun 30, 2002 at 05:37:14PM -0700, chromatic wrote: > Here's a patch to the Test::Simple 0.45 distribution to make isa_ok() work with > class names, not just objects. It tries to respect custom isa() methods, as > well. The purpose of isa_ok() is two fold: Check that a scalar contain

Re: Test::Simple fails "output" subtest 2 on Cygwin/2000

2002-07-06 Thread Michael G Schwern
On Fri, Jun 28, 2002 at 02:34:48PM -0500, Danny Faught wrote: > I just tried to install Test::More 0.45 under Cygwin on Windows 2000. > It fails the output test. Same results on two different machines, and > also on version 0.44. I'm running perl 5.6.1. All other tests pass. > All tests, incl

Re: RFC: Test::Warn

2002-07-06 Thread Michael G Schwern
On Thu, Jun 27, 2002 at 04:32:31PM +0200, Janek Schleicher wrote: > I couldn't find a module doing this job on CPAN, > so I'm ready to write a Test::Warn module. > > I thought that two methods should be implemented: > warns_ok BLOCK REGEX, TEST_NAME (regex and test_name are optional) > no_

Re: [PATCH Test::More] Allow isa_ok( $classname, $parent )

2002-07-06 Thread Michael G Schwern
On Sat, Jul 06, 2002 at 06:57:27PM -0700, chromatic wrote: > My test was: > > use_ok( 'Child::Class' ); > isa_ok( 'Child::Class', 'Parent::Class' ); > > I could just as easily check @Child::Class::ISA or use UNIVERSAL::isa(). Child::Class->isa('Parent::Class') -- This sig file te

Re: [PATCH Test::Builder] Add diagnostic messages to details

2002-07-31 Thread Michael G Schwern
On Sat, Jul 27, 2002 at 09:44:03AM -0700, chromatic wrote: > This patch captures messages sent through diag() and stores them in the > diagnostic array. Now all of the information the tests generate is available > for later inspection. Dude, where's my patch? -- Michael G. Sch

Re: Help spreading Test

2002-07-31 Thread Michael G Schwern
here's a slide in the Test::Tutorial talk with a list current as of a month ago. o If you don't already have them installed, you only need to do it once. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTE

Slides from OSCON

2002-07-31 Thread Michael G Schwern
Figured folks might be interested in slides from talks at OSCON: http://www.pobox.com/~schwern/talks/How_To_Be_Lazy_Redux/ http://www.pobox.com/~schwern/talks/Test_Tutorial/ http://www.pobox.com/~schwern/talks/Writing_A_Test_Library/ -- Michael G. Schwern <[EMAIL PROTECTED]>

Re: [perl #15479] perl 5.8.0 segfault

2002-08-01 Thread Michael G Schwern
t, explaining how to do it, how perl5's tests are structured > to reduce interdependencies, use Test::More; when Test::More is not > appropriate.." Porting/patching.pod About the only thing that's missing is docs for t/test.pl. -- Michael G. Schwern <[EMAIL PROTE

Thoughts from TPC: Testing perlguts with Inline::C

2002-08-02 Thread Michael G Schwern
this is a request to place Inline::C into 5.9 to facilitate easy testing of the C API. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One IMHO bugs in Perl 5 shouldn't carry over to

Re: [PATCH MakeMaker.pm] Add documentation for ExtUtils::MakeMaker::prompt()

2002-08-20 Thread Michael G Schwern
d. + +=back -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Tasty, yet morally ambiguous.

Re: [PATCH] Test::Builder holds object inside

2002-08-25 Thread Michael G Schwern
ilder, so > REFCNT doesn't come to 0 before global cleanup. Whoa, nice catch! And thanks for catching the missing t/has_plan's in the MANIFEST. :) -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]>

Re: Add Test::Harness 2.x Prerequisite to Test::Simple?

2002-08-25 Thread Michael G Schwern
is the best place to handle this. Test::Harness 2.03 is a prerequsite of Test::More. Either it didn't get installed for some reason or your old version is shadowing. T::H somewhere around 1.2x installed itself into site_perl, not the core, so you might have a leftover. Try a "make in

Re: [PATCH MakeMaker.pm] Add documentation for ExtUtils::MakeMaker::prompt()

2002-08-25 Thread Michael G Schwern
zabo via CPANPLUS. How about a way to _force_ > it to prompt or give up if that's really impossible? A timeout argument to prompt() might be worthwhile. And an accompanying environment variable. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ P

Re: Add Test::Harness 2.x Prerequisite to Test::Simple?

2002-08-25 Thread Michael G Schwern
a prereq on Test::Harness. The problem is the installation is almost always screwed up, an old version of T::H winds up shadowing. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One It's Airplane Glue sniffing time!

[ANNOUNCE] Test::Simple 0.47

2002-08-26 Thread Michael G Schwern
http://www.pobox.com/~schwern/src/Test-Simple-0.47.tar.gz Two major bugs were added in 0.46. Objects would accidentally be stored internally causing destructors not to fire when people expected them to. Also ithread support was broken. These have both been fixed. 0.47 Mon Aug 26 03:54:22

Re: Testing POSIX locale support

2002-08-26 Thread Michael G Schwern
so it's not worth much. What you should probably do is emit further diagnostic information on what the test failure might mean like: is($this, $that) || diag(<http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Monkey tennis

Fwd: [ken@mathforum.org: Re: [Inline 0.43] insecure dependency when tainting]

2002-08-29 Thread Michael G Schwern
Then one could do something like this: perl -Mblib=only t/foo.t >Sorry if I've wasted your time by telling you something you >already knew, >or had inferred from Hugo's reply. I might have inferred it, but this helped me understand various implications, actually. -Ke

Re: Help spreading Test

2002-08-29 Thread Michael G Schwern
sing a CPAN shell every module install is going to be a chore anyway. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One I blame myself. AND SATAN.

Re: [ken@mathforum.org: Re: [Inline 0.43] insecure dependency when tainting]

2002-08-29 Thread Michael G Schwern
s are run. All non-XS modules are never really "built", they're already in lib/. All XS modules are built and their results put into lib/ and then the tests are run. So, effectively, the core "installs" every modules into lib/ then runs all their tests. This is so mo

Eliminating the core-test BEGIN block (was Re: [ken@mathforum.org: Re: [Inline 0.43] insecure dependency when tainting])

2002-08-30 Thread Michael G Schwern
lace that elsewhere things get more complicated when trying to run an individual test: ./perl -It -MTestInit lib/Foo/whatever.t or ./perl -I. -MTestInit ../lib/Foo/whatever.t What it boils down to is how to you remove the need for the cargo-cult BEGIN block in each test while still maki

Re: [ken@mathforum.org: Re: [Inline 0.43] insecure dependency when tainting]

2002-08-30 Thread Michael G Schwern
hes back to the author. Keeping them in sync with p5p's patches is the hardest part. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One There is a disurbing lack of PASTE ENEMA on the internet.

Re: Thought

2002-08-30 Thread Michael G Schwern
XS? -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Do you have a map? Because I keep getting lost in your armpits.

Re: Eliminating the core-test BEGIN block (was Re: [ken@mathforum.org: Re: [Inline 0.43] insecure dependency when tainting])

2002-08-30 Thread Michael G Schwern
On Fri, Aug 30, 2002 at 11:57:16AM +0100, Nick Ing-Simmons wrote: > Michael G Schwern <[EMAIL PROTECTED]> writes: > >On Fri, Aug 30, 2002 at 05:54:15PM +1000, Ken Williams wrote: > >> Oh, one big lib/, not several different ones? So then why can't it be > >>

Re: Test::More::can_ok when using AutoLoader

2002-08-30 Thread Michael G Schwern
plit.ix # Index created by AutoSplit for blib/lib/AutoExample.pm #(file acts as timestamp) package AutoExample; sub foo ; 1; $ perl -Mblib -wle 'use AutoExample; print "Yes" if AutoExample->can("foo")' Using /home/schwern/tmp/AutoExample/blib Yes $ p

Re: Test::More::can_ok when using AutoLoader

2002-09-02 Thread Michael G Schwern
On Sat, Aug 31, 2002 at 02:05:53PM +0200, Elizabeth Mattijsen wrote: > >$ perl -Mblib -wle 'use AutoExample; print "Yes" if > >AutoExample->can("foo")' > >Using /home/schwern/tmp/AutoExample/blib > >Yes > > Hmmm... I'm doing B

Re: Eliminating the core-test BEGIN block (was Re: [ken@mathforum.org: Re: [Inline 0.43] insecure dependency when tainting])

2002-09-02 Thread Michael G Schwern
rks just as well: cd t; ./perl -I../lib foo/bar.t Anyhow, t/TestInit.pm *already does this*. schwern@blackrider:/usr/local/src/perl-current$ ./perl -It -MTestInit -wle 'print @INC; use Cwd; print cwd;' .../lib /usr/local/src/perl-current/t While the result is still ugly, it

Re: Eliminating the core-test BEGIN block (was Re: [ken@mathforum.org: Re: [Inline 0.43] insecure dependency when tainting])

2002-09-02 Thread Michael G Schwern
Heck: with a smart enough TestInit, it could even adjust @ARGV > so that you could specify all *.t paths in Unix format, if that > would be helpful. Hmmm. I can't think of a use. > >and perhaps reduced a little further by moving/linking > >TestInit.pm into the > &g

Re: Looking for tool like pydoc to document perl cgi scripts

2002-09-02 Thread Michael G Schwern
an pages. It can produce HTML and lots of other formats. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Still not king

Re: Eliminating the core-test BEGIN block (was Re: [ken@mathforum.org: Re: [Inline 0.43] insecure dependency when tainting])

2002-09-02 Thread Michael G Schwern
s find lib/ > >>'.' won't necessarily be in the path anyway. > > > >Sorry, I ment perl's @INC. > > That's what I meant too. People can build Perl without '.' in > @INC, right? I don't think so. -- Michael G. Schwern &

Re: TEST_VERBOSE

2002-09-04 Thread Michael G Schwern
t variable Test::Harness responds to. Test::Class uses the TEST_VERBOSE environment variable to print out the name of each test before it's run. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One It's Tobacco time!

Re: Test::More

2002-09-27 Thread Michael G Schwern
est::More; # Failed test (-e at line 1) # Tried to use 'Test::More'. # Error: You tried to plan twice! Second plan at (eval 1) line 3 # Looks like you failed 1 tests of 1. schwern@blackrider:~/src/devel/Test-Simple$ I'll have to put in some special case code to make

Re: Test::More

2002-09-30 Thread Michael G Schwern
oice was played by Orson Wells in one of his last performances. Anyhow, I know more about Unicron than Unicode. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Perl_croak(aTHX_ "Believe me, you don't want to use \"-u\" on a Macintosh"); -- toke.c

Re: [ Memory ] Re: Thought

2002-10-03 Thread Michael G Schwern
is a sign they like > the overall picture. And my life is now better for realizing these two > truths. :-) We're Perl programmers. Praise is implicit, like everything else in the language. :) -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl

Re: [ Memory ] Re: Thought

2002-10-03 Thread Michael G Schwern
ry::Heap; my @array = (1..1); HeapChange "creation of array"; my @dup = @array; HeapChange "duplication of array"; A more broad Devel::Internals or a more user-friendly Devel::Memory can be left for later, and the functionality of D

Re: [ Memory ] Re: Thought

2002-10-02 Thread Michael G Schwern
ler's namespace. So you can have your methods which print neatly formatted diagnostics seperate from your methods which simply return values. > Used in scalar context returns the current sbrk value Shouldn't sbrk() do that? Is this the same value as MemUsed() would pr

Re: [ Memory ] Re: Thought

2002-10-02 Thread Michael G Schwern
gt; > > > ? > > See another answer in this thread proposing to return a list of lists. I like > that. Seperate out the three different pieces of functionality, returning the current memory state, printing a memory diagnostic and returning the memory history, into three differen

Re: Test::Class - comments wanted

2002-10-14 Thread Michael G Schwern
:Harness to be upgraded which has been causing some problems lately. Something I'm moving to fix by making the Test::Harness upgrade non-optional when you install Test::More. But that's an implementation issue and will eventually fade away. [1] This thinking makes me nervous, so I&#x

Some upcoming changes to Test::Builder

2002-10-14 Thread Michael G Schwern
7;s threads just so I can remove a large volume of work-around code. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One List context isn't dangerous. Misquoting Gibson is dangerous. -- Ziggy

Re: Some upcoming changes to Test::Builder

2002-10-15 Thread Michael G Schwern
On Tue, Oct 15, 2002 at 10:34:26AM +0100, Nicholas Clark wrote: > On Mon, Oct 14, 2002 at 09:00:42PM -0400, Michael G Schwern wrote: > > 5.8.0's threads are giving me serious headaches. When 5.8.1 comes out I > > might drop support for 5.8.0's threads just so I can rem

Re: callbacks at the end of Test::More ?

2002-11-06 Thread Michael G Schwern
r an is_passing() method. Or both. BTW How does one get the current srand if you use the one set by Perl? -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One I'm not actually Kevin Lenzo, but I play him on TV.

Test::Builder->level

2002-11-10 Thread Michael G Schwern
At YAPC::Europe there was some discussion about Test::Builder->level, $Test::Builder::Level and the fact that they don't really work well as implemented. I know we reached some sort of consensus about how to do it better, but I've forgotten it. Anyone remember? -- Michael G. Schw

Upcoming change to Test::Simple/Builder/More wrt threads

2002-11-10 Thread Michael G Schwern
ecessary to load threads.pm before Test::More or Test::Builder if you wish to use threads in your tests. use threads; use Test::More; -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]>

And for the mod_perl folks... Test::Builder->reset

2002-11-10 Thread Michael G Schwern
convinced its a good idea. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Home of da bomb

[ANNOUNCE] Test::Simple/More/Builder 0.48_01

2002-11-11 Thread Michael G Schwern
http://www.pobox.com/~schwern/src/Test-Simple-0.48_01.tar.gz Since there's a lot of internal and external change going on in this release, I decided to put out an alpha first. The external API changes: * The Test::Harness upgrade is no longer optional. * threads.pm is no longer automati

Re: And for the mod_perl folks... Test::Builder->reset

2002-11-11 Thread Michael G Schwern
e object while leaving another in a normal state to perform the tests. The real reason why I put all the data into lexicals rather than a hash is because its easier to type $Have_Plan than $self->{Have_Plan}. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schw

Re: And for the mod_perl folks... Test::Builder->reset

2002-11-11 Thread Michael G Schwern
On Mon, Nov 11, 2002 at 02:51:00PM -0800, chromatic wrote: > On Monday 11 November 2002 14:40, Michael G Schwern wrote: > > > > We *could* add a method called really_create_a_new_builder() that doesn't > > > have the singleton properties, but what problem does that s

Re: And for the mod_perl folks... Test::Builder->reset

2002-11-11 Thread Michael G Schwern
der::Level + 1; > > return $self->SUPER::like(@_) >} Oh, to have real end-of-scope conditions. > > > > The real reason why I put all the data into lexicals rather than a hash is > > > > because its easier to type $Have_Plan than $self->{Have_Plan}. &g

Re: Removing CPAN's dependency on Test::More

2002-11-12 Thread Michael G Schwern
; > Or is this a sneaky way to get more people to install Test::More > on their machines? CPAN::MakeMaker? -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One Ooops, fatal mutation in the test script.

Re: Test::Builder->level

2002-11-13 Thread Michael G Schwern
sub real_test_func { ... $TB->ok($test); ... } a practical example would be an Exporter/Exporter::Heavy poor-man's autoloader setup. Of course, there's nothing stopping you from overriding level() to be magical, once I implement

Changing T::B behavior (was Re: And for the mod_perl folks... Test::Builder->reset)

2002-11-13 Thread Michael G Schwern
- copies the state of one object to a new one copy & share state- like copy, but test state is shared between the original and the copy with those plus the push/pop_stack methods you can pick and choose what sort of state sharing you want. -- Michael G. Schwe

Re: Changing T::B behavior

2002-11-14 Thread Michael G Schwern
r->create(state => $tb->state); You're right, this one isn't necessary given the *state methods sketched out above. > >with those plus the push/pop_stack methods you can pick and choose what > >sort > >of state sharing you want. > > If we have explicit acce

Re: Test::Builder->level

2002-11-15 Thread Michael G Schwern
Test::Foo::Inside; sub wiffle { something(@_); } ...and in your test code... use Test::Foo; wiffle(); Ooops. -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTE

Re: Binary-wise is()

2002-11-27 Thread Michael G Schwern
use Test::More tests => 42; use Test::Binary; is(...); binary_is(...); See http://www.pobox.com/~schwern/talks/Writing_A_Test_Library/full_slides/ for details about using Test::Builder. -- Michael G. Schwern <[EMAIL PROTECTED]&

Wiki Wiki Working

2002-12-04 Thread Michael G Schwern
After shuffling some files around and doing some permissions tricks, the Perl QA Wiki is working again! Everything is now editable. http://www.pobox.com/~schwern/cgi-bin/perl-qa-wiki.cgi -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl Quality Ass

Re: testing with stubs

2002-12-13 Thread Michael G Schwern
s to try and test in the script. Beyond that the real problem is that scripts must be called as seperate processes which makes much of the subroutine overriding tricks above difficult. I have a trick which simulates running a perl script, but all its really doing is eval'ing the code in th

Re: ANNOUNCE: Test::XML

2003-04-01 Thread Michael G Schwern
On Mon, Mar 31, 2003 at 12:45:14PM +0100, Dominic Mitchell wrote: > I've just uploaded a new module to CPAN[1], Test::XML. It contains a > couple of functions for examining XML output of functions in a slightly > saner way than is(). > > http://search.cpan.org/author/SEMANTICO/Test-XML-0.03

Re: Using environment variables to control long running tests

2003-06-06 Thread Michael G Schwern
On Thu, Jun 05, 2003 at 10:55:29AM +0100, Mark Fowler wrote: > On Thu, 5 Jun 2003, [iso-8859-1] Andrew Savige wrote: > > > While a standard name is not required, having one would allow > > automated CPAN test harnesses to run the longer tests. > > While we're on it, it'd be nice to have a standar

Re: [ANNOUNCE] Test::Warn::None 0.02

2003-06-24 Thread Michael G Schwern
On Mon, Jun 23, 2003 at 05:49:06PM +0100, Fergal Daly wrote: > I'm looking for comment or suggestions about this new module. It's > independent of and complementary to Test::Warn. It tests that your test > script didn't emit any warnings. Just add > > use Test::More::None; > > to the top

Re: [ANNOUNCE] Test::Warn::None 0.02

2003-06-24 Thread Michael G Schwern
On Tue, Jun 24, 2003 at 10:59:43AM +0200, Tels wrote: > > On Mon, Jun 23, 2003 at 05:49:06PM +0100, Fergal Daly wrote: > >> I'm looking for comment or suggestions about this new module. It's > >> independent of and complementary to Test::Warn. It tests that your test > >> script didn't emit

Re: [ANNOUNCE] Test::Warn::None 0.02

2003-06-24 Thread Michael G Schwern
On Tue, Jun 24, 2003 at 12:07:19PM +0100, Fergal Daly wrote: > > Consider the following. > > > > use Test::More; > > use Test::Warn::None; > > plan tests => 42; > > > > To make this work I'd have to overhaul the internal Test::Builder planning > > system to allow Test::Warn::None to s

Re: [ANNOUNCE] Test::Warn::None 0.02

2003-06-24 Thread Michael G Schwern
On Tue, Jun 24, 2003 at 12:37:36PM +0100, Fergal Daly wrote: > Also how about calling it Test::Warn::Auto? I'm not particularly happy with > None, Test::Warn::Auto doesn't say anything about its main purpose: to ensure that you have no warnings. Instead it documents an implementation detail, tha

Re: [ANNOUNCE] Test::Warn::None 0.02

2003-06-24 Thread Michael G Schwern
On Tue, Jun 24, 2003 at 01:36:52PM +0200, Rafael Garcia-Suarez wrote: > BTW, what about modules that define their own category of warnings > (via warnings::register) ? It'd be useful to have a module to ease > testing for warnings presence/absence on certain conditions. There's Test::Warn, but I d

Re: [ANNOUNCE] Test::Warn::None 0.02

2003-06-24 Thread Michael G Schwern
On Tue, Jun 24, 2003 at 02:04:25PM -0500, Andy Lester wrote: > All this "make sure no warnings fired" is good thinking. But why not > roll it into Test::Harness, and make it switch selectable? It's > really T::H that we want keeping an eye on this, right? No, its definately a test feature. Mu

Re: [ANNOUNCE] Test::Warn::None 0.02

2003-06-28 Thread Michael G Schwern
On Wed, Jun 25, 2003 at 07:09:26PM +0100, Fergal Daly wrote: > I just thought of a big problem with plan extensions. If the script silently > eat's itself just before you extend the plan, then you don't know that > anything went wrong. It would have to also exit normally. That is rare. -- Is

Re: [ANNOUNCE] Test::Warn::None 0.02

2003-06-28 Thread Michael G Schwern
On Tue, Jun 24, 2003 at 08:39:39PM +0100, Fergal Daly wrote: > Test::NoWarnings sounds good to me. What is the correct etiquette for > abandoning a namespace? Just delete the files with PAUSE or should I leave a > pointer behind? Not too important with this module but I'm just curious, When I me

Re: Renaming modules (was Re: [ANNOUNCE] Test::Warn::None 0.02)

2003-06-29 Thread Michael G Schwern
On Sat, Jun 28, 2003 at 10:13:06PM +0100, Fergal Daly wrote: > On Saturday 28 June 2003 02:51, Michael G Schwern wrote: > > When I merged Test::Simple with Test::More I left a Test-More tarball lying > > around containing a Makefile.PL which simply died saying "download >

Re: Tests in END blocks and VERSION

2003-07-08 Thread Michael G Schwern
On Sun, Jul 06, 2003 at 01:02:12PM +0100, Fergal Daly wrote: > [EMAIL PROTECTED]:> perl Makefile.PL > Writing Makefile for Test::Deep > You tried to run a test without a plan! Gotta have a plan. at > /usr/lib/perl5/5.8.0/Test/NoWarnings.pm line 99 > END failed--call queue aborted. > # Looks like

Low hanging perlbug fruit

2003-07-17 Thread Michael G Schwern
Looking at the Perl bug overview yesterday, I noticed that we have 90-odd open bugs which are listed as "notabug"! How odd. Most of these are miscategoriezed. Some are just really old bugs that have long since been fixed. Anyhow, its a big branch of low hanging fruit to work on for closing perl

perlbug ego search

2003-07-17 Thread Michael G Schwern
Having just had a really old notabug I sent a few years ago via an old email address pointed out to me, I tried searching on bugs.perl.org for "Requestor email address contains 'schwern'" and "Status isn't resolved". Found seven, many about really old or deve

Re: perlbug HOWTO

2003-07-19 Thread Michael G Schwern
On Fri, Jul 18, 2003 at 12:00:55PM -0700, Robert Spier wrote: > > There doesn't seem to be any documentation anywhere on this, and we > > thought the QA wiki might be a useful place to try putting it > > together. > > I'd rather something that can actually live on bugs.perl.org. How about a bugs.

Re: TODO tests for outstanding bugs?

2003-07-19 Thread Michael G Schwern
On Fri, Jul 18, 2003 at 06:36:41PM +0100, Tony Bowden wrote: > What's the current approach to turning perlbugs into tests? > > Should they be done as TODOs? Is there a distinct set of test files for > them? etc? Can they use Test::More? etc. etc. etc. > > e.g. http://bugs6.perl.org/rt2/Ticket/Di

Re: perlbug HOWTO

2003-07-19 Thread Michael G Schwern
On Fri, Jul 18, 2003 at 09:17:26PM -0700, Robert Spier wrote: > > > I'd rather something that can actually live on bugs.perl.org. > > How about a bugs.perl.org Kwiki? > > I have not yet drunk that particular Kool Aid. I will unleash Ingy upon you when he gets back. > I'm happy to accept patch

Get yer Schwern, CHEAP!

2003-07-22 Thread Michael G Schwern
I have an odd proposition to make. I'd like to do some travelling in the coming months. Specificly, I've a friend's wedding in Pittsburgh, PA I'd like to attend in September and I'd really like to be there for the Global Balalaika Show at the Helsinki Festival this year in August. Of course, I'm

Blurring the line between assertions and tests

2003-08-01 Thread Michael G Schwern
I had an idea yesterday. On more than one occassion, a I've been asked about running tests against a live site. My usual waffle is to talk about assertions or to build a seperate test suite which is explicitly non-modifying. Or something Skud came up with which was to tag blocks of tests in the s

Re: Blurring the line between assertions and tests

2003-08-01 Thread Michael G Schwern
On Fri, Aug 01, 2003 at 01:07:15PM -0700, Michael G Schwern wrote: > Another way is to use a TEST: block > and have Filter::Simple strip them out. > > TEST: { > cmp_ok( ... ); > } > Questions? Comments? Approval? Hell, why wait for wiser heads? http://w

Re: Blurring the line between assertions and tests

2003-08-01 Thread Michael G Schwern
Make that... http://www.pobox.com/~schwern/src/Test-AtRuntime-0.01.tar.gz -- I knew right away that my pants and your inner child could be best friends.

Re: Blurring the line between assertions and tests

2003-08-02 Thread Michael G Schwern
On Sat, Aug 02, 2003 at 12:09:22AM +0100, Adrian Howard wrote: > - Rather than running tests at live time, I'm more often doing the > opposite. I have assertions that I only want to switch on at testing > time since that is when I'm exercising things that might break. > > - This sort of

Re: Blurring the line between assertions and tests

2003-08-02 Thread Michael G Schwern
On Fri, Aug 01, 2003 at 11:02:19PM -, Rafael Garcia-Suarez wrote: > Michael G Schwern wrote in perl.qa : > > The only part missing is the ability to shut the tests off once you've > > released it to production. > > You could perhaps use the assertion feature of per

[ANNONCE] Test::AtRuntime 0.02

2003-08-02 Thread Michael G Schwern
http://www.pobox.com/~schwern/src/Test-AtRuntime-0.02.tar.gz or a CPAN near you. Still a few small bugs and missing features, but the important things work. See the TODO and CAVEATS for details. Now works with 5.6.0! NAME Test::AtRuntime - Put tests in your code and run them as

Re: Blurring the line between assertions and tests

2003-08-03 Thread Michael G Schwern
On Sat, Aug 02, 2003 at 11:22:43AM -0700, chromatic wrote: > Could these instead be subroutine attributes? I can see a lot of > advantages there. I know very little about subroutine attributes, so you're going to have to investigate that one. Keep in mind, though, that we want the *whole call t

Re: Blurring the line between assertions and tests

2003-08-03 Thread Michael G Schwern
On Sat, Aug 02, 2003 at 11:43:26AM -0700, Ovid wrote: > This does mean, though, that it won't play nicely with versions of Perl < 5.6.0. Is > that trade > off acceptable? I'll throw in the fallback "if DEBUG" style TEST { my $sky = look('up'); is( $sky, 'blue' ); } if

Re: Blurring the line between assertions and tests

2003-08-03 Thread Michael G Schwern
On Sat, Aug 02, 2003 at 05:02:58PM +0100, Adrian Howard wrote: > >Or even more trivially, take Test::AtRuntime and swap > >out Test::Builder::ok() with something that dies on failure. > [snip] > > I was thinking about the ability to have an assertion block - so you > could do (something like): >

Return of the Perl QA Wiki, this time for good

2003-08-15 Thread Michael G Schwern
As I've obtained a stable server on which I have root, I've moved the QA Wiki there so the permissions problems which have plagued it will be no more! The existing URL will work fine. http://www.pobox.com/~schwern/cgi-bin/perl-qa-wiki.cgi -- Michael G Schwern[EMAIL PROTEC

Existing books on testing?

2003-08-15 Thread Michael G Schwern
about *Perl* testing. I've put up a Wiki page to generate a listing. http://www.pobox.com/~schwern/cgi-bin/perl-qa-wiki.cgi?TestingBooks -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Death was thought to be fatal. -- Craig A. Berry in <[EMAIL PROTECTED]>

Re: Return of the Perl QA Wiki, this time for good

2003-08-15 Thread Michael G Schwern
On Fri, Aug 15, 2003 at 09:25:05AM -, Rafael Garcia-Suarez wrote: > Michael G Schwern wrote in perl.qa : > > http://www.pobox.com/~schwern/cgi-bin/perl-qa-wiki.cgi > > Do you want a link to this from qa.perl.org ? Sure. -- Michael G Schwern[EMAIL PROTECTED] http:

Re: Testing for valid path names in CPAN distributions

2003-08-18 Thread Michael G Schwern
ard test for valid "portable" path names. > Does such a test exist? I noticed Archive::Any has is_impolite() and > is_naughty() but didn't see any checks for basic path name validity. > BTW, is Archive::Any a "dead camel"? Its just resting. -- Michael G Schwern

Re: Scrutinizing CPAN distributions (was Testing for valid path names...)

2003-08-18 Thread Michael G Schwern
the net effect of the individual changes. Says who? -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ It's Airplane Glue sniffing time!

Re: Scrutinizing CPAN distributions (Commenting Styles)

2003-08-18 Thread Michael G Schwern
f the screen to distinguish it from the code when you use POD. Might I suggest a good syntax highlighting editor? -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ The key, my friend, is hash browns. http://www.goats.com/archive/980402.html

Re: Scrutinizing CPAN distributions (Commenting Styles)

2003-08-18 Thread Michael G Schwern
perl-mode will do it. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Hey Schwern! honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, h

Re: passing arguments to tests

2003-08-20 Thread Michael G Schwern
On Thu, Jul 24, 2003 at 10:55:57AM +1000, Andrew Savige wrote: > I'd be interested to see an example of sub-classing Test::Harness. See examples/mini_harness.plx in Test::Harness. The straps interface is not yet entirely usable. -- Michael G Schwern[EMAIL PROTECTE

Re: blocks and subplans again

2003-08-20 Thread Michael G Schwern
nning with whitespace. If a test fails inside a sub block, the error will > propogate all the way to the outermost block so TH will see it. So you can > test this out without modifying TH, although it would be nice if TH > understood this format. I don't think we can

Re: blocks and subplans again

2003-08-20 Thread Michael G Schwern
On Wed, Aug 20, 2003 at 10:34:08AM +0100, Fergal Daly wrote: > On Wednesday 20 August 2003 08:23, Michael G Schwern wrote: > > You don't want subtests to have to know any state, such as how far to > > indent. Why? Consider: > > Something has to keep state The stat

Re: passing arguments to tests

2003-08-20 Thread Michael G Schwern
raft animal so that it can be attached to and pull a cart Test::Harness::Parser would have been a better name, but hey, you're talking to the author of Ima::DBI. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Global communism.

Re: blocks and subplans again

2003-08-20 Thread Michael G Schwern
On Wed, Aug 20, 2003 at 02:00:28PM +0100, Adrian Howard wrote: > On Wednesday, August 20, 2003, at 11:52 am, Michael G Schwern wrote: > [snip] > >I've yet to see a real use-case for plans of plans. > [snip] > > Anywhere when you want to have plans at a higher level of

Re: blocks and subplans again

2003-08-20 Thread Michael G Schwern
uot;); local $ENV{FOO} = ''; system("%^X foo.t"); { local $ENV{FOO}; delete $ENV{FOO}; system("$^X foo.t"); } A cheap way to run a single test in a variety of different environments. Or... foreach my $test (glob("t/subdir/*.t"))

<    1   2   3   4   5   6   7   8   9   10   >