Re: TAP diagnostic syntax proposal

2006-07-10 Thread Pete Krawczyk
t would raw-test show for this? is($user,"testuser$id","Test user name correctly generated"); -Pete K -- Pete Krawczyk perl at bsod dot net

Re: [Slightly OT] Understanding Software Licences

2006-07-07 Thread Pete Krawczyk
smarter people than I in contract law have worked it out before me, and I'm intelligent enough to trust their judgements. -Pete K -- Pete Krawczyk perl at bsod dot net

Re: skip_all with Test::More?

2006-05-31 Thread Pete Krawczyk
e_condition; plan tests => 22; skip_all is a plan descriptor and as such needs to be given to plan. -Pete K -- Pete Krawczyk perl at bsod dot net

Re: Unintended consequences

2006-05-26 Thread Pete Krawczyk
ou post an example? The logical spot for having the module }"phone home" would be in the Makefile.PL. I also glanced at some tests, }but didn't see anything there, either. Look in the Build.PL, which Makefile.PL also calls. http://search.cpan.org/src/NICOLAW/WWW-Dilbert-1.19/B

Test-Simple patch: can_ok() fails if first argument is false

2005-11-09 Thread Pete Krawczyk
quot;$class->can(...)" ); $tb->diag('can_ok() called with no methods'); ====== The patch does not address a method name that is undefined. -Pete K -- Pete Krawczyk perl at bsod dot net

Re: Test::More behavior issue with Devel::Cover + patch

2005-11-04 Thread Pete Krawczyk
lly be the best fix, but I'd rather not see the incoming object have a method called if it's not even blessed. -Pete K -- Pete Krawczyk perl at bsod dot net

Re: Test::More behavior issue with Devel::Cover + patch

2005-11-04 Thread Pete Krawczyk
t away from the block in question. }Second, if it's not a valid invocant, you need to wrap the whole }expression in an eval block. Again, this is already done, but unlike other places (e.g. Scalar::Util) that run an eval that might die, $SIG{__DIE__} is not localized. -Pete K -- Pete Krawczy

Re: Test::More behavior issue with Devel::Cover + patch

2005-11-04 Thread Pete Krawczyk
f going back to 5.4.0. Stealing the code from Scalar::Util isn't necessarily the best fix either. Does anyone have a better way of checking whether an object is blessed that's backportable through core? -Pete K -- Pete Krawczyk perl at bsod dot net

Re: Test::More behavior issue with Devel::Cover + patch

2005-11-03 Thread Pete Krawczyk
Subject: Re: Test::More behavior issue with Devel::Cover + patch From: Ricardo SIGNES <[EMAIL PROTECTED]> Date: Thu, 3 Nov 2005 13:14:34 -0500 }* Pete Krawczyk <[EMAIL PROTECTED]> [2005-11-03T12:46:48] }> }> The solution I see is to make sure the object can() isa(), thus avoid

Test::More behavior issue with Devel::Cover + patch

2005-11-03 Thread Pete Krawczyk
ect, $class) ) { +my $ref = ref $object; +$diag = "$obj_name isn't a '$class' it's a '$ref'"; +} +} And that makes prove happy once more. Thanks, -Pete K -- Pete Krawczyk perl at bsod dot net

Re: prove with Devel::Cover example?

2005-06-03 Thread Pete Krawczyk
Subject: prove with Devel::Cover example? From: Mark Stosberg <[EMAIL PROTECTED]> Date: Fri, 3 Jun 2005 18:44:53 + (UTC) }How can I use 'prove' and Devel::Cover together? I tried: HARNESS_PERL_SWITCHES=-MDevel::Cover prove file.t -Pete K -- Pete Krawczyk perl at bsod dot net

Re: Kwalitee and has_test_*

2005-04-07 Thread Pete Krawczyk
arily public right now, but if I had a hardware-level test suite that simulated what I was actually doing, I could find out much quicker if that new stick of RAM I put in my computer was going to cause unexpected behavior. -Pete K -- Pete Krawczyk perl at bsod dot net

Re: testing non-modules

2005-03-06 Thread Pete Krawczyk
I had written a private module for myself that allows exit() to be changed on-the-fly so that it could be explicitly changed for shorter periods of time than "the entire script". I never released it, though. -Pete K -- Pete Krawczyk perl at bsod dot net

Re: Phalanx: What if full coverage isn't possible? (fwd)

2004-07-11 Thread Pete Krawczyk
ir POD documentation. I agree completely that documenting private interfaces within a POD doc will do little to help the average developer who just wants to use the module, and may in fact wind up causing problems for a module developer that changes the internal structure of their module in

Phalanx: What if full coverage isn't possible?

2004-07-09 Thread Pete Krawczyk
place in a regular "make test" run? -Pete K -- Pete Krawczyk perl at bsod dot net