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

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]http

Re: [perl #15479] perl 5.8.0 segfault

2002-08-01 Thread Michael G Schwern
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 PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL

Thoughts from TPC: Testing perlguts with Inline::C

2002-08-02 Thread Michael G Schwern
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 Perl 6. (Unless, of course, we *like

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

2002-08-20 Thread Michael G Schwern
. + +=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-26 Thread Michael G Schwern
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] Kwalitee Is Job One gigaconway: a hypothetical unit of mind

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

2002-08-26 Thread Michael G Schwern
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/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One I've just gone through a lung

[ANNOUNCE] Test::Simple 0.47

2002-08-26 Thread Michael G Schwern
not fire on child processes when forking. * Test::Builder is once again ithread safe. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One I do have a cause though. It is obscenity. I'm

Re: Testing POSIX locale support

2002-08-26 Thread Michael G Schwern
like: is($this, $that) || diag(MSG); Please check that your $locale_i_was_testing_with locale is fully installed and try again. Otherwise, contact the author. MSG -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED

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

2002-08-29 Thread Michael G Schwern
implications, actually. -Ken - End forwarded message - -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Try explaining that to my brain which is currently ON FIRE! http

Re: Help spreading Test

2002-08-29 Thread Michael G Schwern
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
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 module A's tests can find module B. -- Michael G. Schwern [EMAIL

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
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 making it easy to run individual tests by hand? -- Michael G. Schwern [EMAIL

Re: Thought

2002-08-30 Thread Michael G Schwern
? -- 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 run with perl -Mblib=lib t/foo/bar.t

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

2002-09-02 Thread Michael G Schwern
. Shouldn't be a difference. Ok, so it _should_ work. I'll see if I can boil this down and create a bugreport if I can. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Out of ammunition

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
block is redundant. t/harness (ie. make test_harness) is currently not using TestInit. There's currently a bug where $Test::Harness::switches is not honored. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED

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

2002-09-02 Thread Michael G Schwern
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
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 [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One If your module passes test

Re: TEST_VERBOSE

2002-09-04 Thread Michael G Schwern
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
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 it work right. 2. I'm testing conversions to and from Unicode Unicode... wasn't he the bad guy in the Transformers Movie? -- Michael G. Schwern [EMAIL

Re: Test::More

2002-09-30 Thread Michael G Schwern
. -- 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-02 Thread Michael G Schwern
complicated and the use more prone to subtle bugs such as forgetting that foo(MemUsed); should probably be foo(scalar MemUsed); -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Some upcoming changes to Test::Builder

2002-10-14 Thread Michael G Schwern
-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: callbacks at the end of Test::More ?

2002-11-06 Thread Michael G Schwern
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.

Re: Test::Builder-level

2002-11-13 Thread Michael G Schwern
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 your ideas about being able to change the default object and stack them. -- Michael G. Schwern [EMAIL PROTECTED]http

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

2002-11-13 Thread Michael G Schwern
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. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED

Re: Changing T::B behavior

2002-11-14 Thread Michael G Schwern
this will interact with threading :-/ (Famous last words) There shouldn't be a problem. -- 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::Builder-level

2002-11-15 Thread Michael G Schwern
; 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 PROTECTED] Kwalitee Is Job One Death

Re: Binary-wise is()

2002-11-27 Thread Michael G Schwern
; 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]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL

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 Assurance

Re: testing with stubs

2002-12-13 Thread Michael G Schwern
have a trick which simulates running a perl script, but all its really doing is eval'ing the code in the current process. This means the tricks above will work. It can be found here: http://www.pobox.com/~schwern/tmp/esmith-TestUtils.pm Adapt as you like. -- Michael G. Schwern [EMAIL

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 standard

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 your

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 any

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 say I'm going to

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, that

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: 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 Test-Simple instead. That's

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,

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

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( ... ); } snip Questions? Comments? Approval? Hell, why wait for wiser heads? http://www.pobox.com/~schwern/Test

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 perl = 5.9.0 (assertion.pm

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 to

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): ASSERT

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 PROTECTED] http

Existing books on testing?

2003-08-15 Thread Michael G Schwern
. 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://www.pobox.com

Re: Testing for valid path names in CPAN distributions

2003-08-18 Thread Michael G Schwern
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[EMAIL PROTECTED] http://www.pobox.com/~schwern/ That you be hanged by the neck, but not until you are dead, but that you

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

2003-08-18 Thread Michael G Schwern
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
will do it. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ purl 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, honk, honk

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 PROTECTED] http

Re: blocks and subplans again

2003-08-20 Thread Michael G Schwern
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 get away with T::H not being modified. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ mendel ScHWeRnsChweRNsChWErN

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 state of the overall test? No, that's

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 granularity than a test script

Module::TestConfig

2003-08-20 Thread Michael G Schwern
| *| ++--+ Writing Makefile for Tornado::ConnectionHandler Since PAUSE is down it hasn't been uploaded to CPAN yet. You can get it here: http://keroes.com/perl/ -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ It's Tobacco time!

Re: blocks and subplans again

2003-08-21 Thread Michael G Schwern
the no_plan style so that it has to produce some sort of header. It might be literally 1..N. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Cheating is often more efficient. - Seven of Nine

Re: Existing books on testing?

2003-08-21 Thread Michael G Schwern
On Thu, Aug 21, 2003 at 08:34:44AM -0500, Danny R. Faught wrote: Michael G Schwern wrote: What books out there are of use for those wanting to learn Perl testing? They don't necessarily have to be specificly about *Perl* testing. I've put up a Wiki page to generate a listing. http

Re: blocks and subplans again

2003-08-21 Thread Michael G Schwern
thread 1 will have a number starting with 1. and thread 2 will have 2. etc This is convincing. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Shrtr is btr. -- Abhijit Menon-Sen in [EMAIL PROTECTED]

Re: This should never happen!

2003-08-26 Thread Michael G Schwern
of results than tests ran! This should never happen! Please contact the author immediately! END failed--call queue aborted. Looks like an ithreads bug. Forwarded it to p5p for analysis. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ 1. You are thin. 2. You look great. 3

Re: Test::More and 'deep' tests

2003-09-10 Thread Michael G Schwern
() should consider them equal. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Remember, any tool can be the right tool. -- Red Green

Re: Test::More and 'deep' tests

2003-09-10 Thread Michael G Schwern
importantly, I'm *not* betting against the test author. If they wrote a test for string equality (which is what is() pretty much is) then that's what they'll get. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Playstation? Of course Perl runs on Playstation

Re: Test::More and 'deep' tests

2003-09-10 Thread Michael G Schwern
then there is no point in continuing. Well then, I guess there's no point in continuing. ;) -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Woah, like, did anybody see my watch?

Fwd: [jhi@iki.fi: this might amuse you]

2003-09-11 Thread Michael G Schwern
PROTECTED] http://www.iki.fi/jhi/ There is this special biologist word we use for 'stable'. It is 'dead'. -- Jack Cohen - End forwarded message - -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Playstation? Of course Perl runs on Playstation. -- Jarkko

puts(foot) on is_deeply() and overloading

2003-09-10 Thread Michael G Schwern
, but don't let that hold you up Jarkko. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Cottleston, Cottleston, Cottleston Pie. A fly can't bird, but a bird can fly. Ask me a riddle and I reply: Cottleston, Cottleston, Cottleston Pie.

Re: puts(foot) on is_deeply() and overloading

2003-09-11 Thread Michael G Schwern
on the assumption that folks have worked around them and/or aren't bothered by them. I know folks are bothered by the overload bug. Sorry to be so troublesome about this, but as RFC 1925's Rule #1 states It Has To Work. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern

Re: puts(foot) on is_deeply() and overloading

2003-09-11 Thread Michael G Schwern
://www.pobox.com/~schwern/tmp/mcp_eol.wav -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Stupid am I? Stupid like a fox!

Re: Test::More isa Catholic?

2003-09-15 Thread Michael G Schwern
grows in Brooklyn' ); This does not check if Cexists $brooklyn{tree} is true, it checks if it returns 1. Very different. Similar caveats exist for false and 0. In these cases, use ok(). ok( exists $brooklyn{tree},'A tree grows in Brooklyn' ); -- Michael G Schwern[EMAIL PROTECTED

Re: Phalanx / CPANTS / Kwalitee

2003-10-13 Thread Michael G Schwern
. Some ideas: * wheater PREREQ_PM matches used modules (hard!) Nearly impossible since: require Foo::Bar if $some_condition; Otherwise Module::Info-modules_used() can handle it. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ AY! The ground beef, she is burning

Re: Phalanx / CPANTS / Kwalitee

2003-10-13 Thread Michael G Schwern
. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ I know you get this a lot, but what's an unholy fairy like you doing in a mosque like this?

Re: Phalanx / CPANTS / Kwalitee

2003-10-15 Thread Michael G Schwern
. Quite a lot come with two or three of those files. Could we infer that a distribution that comes with several Makefile.PLs may have an overcomplicated build process, maybe indicating a low kwalitee ? No, there's nothing wrong with having sub-build directories. -- Michael G Schwern

Re: Phalanx / CPANTS / Kwalitee

2003-10-15 Thread Michael G Schwern
. If a test fails, make test will still succeed. Still, its better than nothing at all. So t/* should hint more kwalitee than only test.pl Yes. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Death follows me like a wee followey thing. -- Quakeman

Re: Phalanx / CPANTS / Kwalitee

2003-10-15 Thread Michael G Schwern
On Wed, Oct 15, 2003 at 10:34:19PM -, Rafael Garcia-Suarez wrote: Michael G Schwern wrote in perl.qa : This all suggests another check: stray files. Emacs backup files. CVS directories. Empty directories. #...# backup files. Makefiles shipped with Makefile.PL, Build and _build

Re: Perl Core Tests

2003-10-16 Thread Michael G Schwern
::More. Barring any Unicode-related fiascos (of which I am proudly and blissfully unaware), they probably haven't been converted yet. See perlhack for details. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ I'm not actually Kevin Lenzo, but I play him on TV.

Re: Taint mode testing and project Phalanx

2003-10-19 Thread Michael G Schwern
work back to 5.4.0. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ You and your facts and your physics. Pah, I say. http://www.goats.com/archive/981221.html

Re: No more code coverage

2003-10-21 Thread Michael G Schwern
-Simple's another good one. 44 programs, 267 tests, no dependencies, backwards compatible to 5.4.0, does some complex stuff (evals, %SIG, tied handles, system()...). -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Here's some scholarly-ass opinions...

Re: Taint mode testing and project Phalanx

2003-10-21 Thread Michael G Schwern
On Tue, Oct 21, 2003 at 12:34:44PM -0500, Dave Rolsky wrote: Anyway, my taint mode experience has been that random things break in very weird ways when using it. All the more reason to test with it on. :) -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Do

Re: Trying to spear a phalanx shield for pod

2003-10-26 Thread Michael G Schwern
On Sun, Oct 26, 2003 at 04:45:48PM +1100, Andrew Savige wrote: Michael G Schwern wrote: Since skip_all will exit immediately you can fold that big everything inside the else block away. eval 'use Test::Pod'; my $have_testpod = !$@ and $Test::Pod::VERSION = 0.95; plan skip_all = Test

Re: Trying to spear a phalanx shield for pod

2003-10-28 Thread Michael G Schwern
write special case code to skip those files that should not be checked. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ The Power almighty rests in this Lone Ring. The Power, alrighty, for doing your Own Thing. If broken or busted, it cannot be remade. If found, send

Re: Hoplites: Watch for each

2003-11-03 Thread Michael G Schwern
for. Lately, I've been spending my free time on prove and Test::Harness. *cough*wiki*cough* ;) -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Stupid am I? Stupid like a fox!

Re: Refactoring a test program: advice sought

2003-11-13 Thread Michael G Schwern
to put that into a module as well (look at MakeMaker::Test::Setup::* in a very recent MakeMaker for an example). -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Playstation? Of course Perl runs on Playstation. -- Jarkko Hietaniemi

Re: Refactoring a test program: advice sought

2003-11-14 Thread Michael G Schwern
On Sat, Nov 15, 2003 at 02:51:26PM +1100, Andrew Savige wrote: Michael G Schwern wrote: I use t/lib so the top level t/ directory doesn't get cluttered (and for compatibility with the Perl core which may be important later for A::T). Yes, I like that. Should I call it: t/lib/Test

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

2003-11-18 Thread Michael G Schwern
testing position. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Congratulations, you're a thieving bastard... Now give me back my pants. That's MISTER Pants! -- Ian's Adventures In Morrowind http://www.machall.com/morrowind/page3.html

Re: thinking about variable context for like()

2003-11-18 Thread Michael G Schwern
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

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

2003-11-19 Thread Michael G Schwern
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

Re: tesing exceptions of Error.pm

2003-12-02 Thread Michael G Schwern
bad thing'); Now $ex is global but I think I cannot test within the catch block. Why not? catch MyError with { like( $ex, qr/Bad thing/ ); }; -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Good tidings, my native American

Re: tesing exceptions of Error.pm

2003-12-03 Thread Michael G Schwern
On Wed, Dec 03, 2003 at 10:20:03AM +, Fergal Daly wrote: On Tue, Dec 02, 2003 at 10:05:46PM -0800, Michael G Schwern wrote: Why not? catch MyError with { like( $ex, qr/Bad thing/ ); }; If there is no exception then then that test won't execute. It'd have

Re: Test::Benchmark ??

2003-12-04 Thread Michael G Schwern
on machine A would be roughly twice as long as a pmip on a machine that's twice as fast. This enables us to test make sure this isn't too slow. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ PS I am very handsome and I live in a castle with a pony.

Re: Test::Benchmark ??

2003-12-04 Thread Michael G Schwern
, $perl_code, XS is 5 times faster) But I don't think that was what Jim wanted, it seemed like he was trying to display benchmark info purely for informational purposes, For that I'd recommend doing what DBI does and putting the benchmarking code into test.pl. -- Michael G Schwern[EMAIL

Re: Test::Benchmark ??

2003-12-04 Thread Michael G Schwern
for warnings rather than just pass and fail then this would be more useful, print STDERR or diag(). Test::Harness doesn't need to know anything about warnings. If it can't fail its not really a test. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ It's Highball time!

Re: rt.cpan.org

2003-12-06 Thread Michael G Schwern
: (a) what I'm doing wrong (b) where to find information on these reports (c) whether there's a much more appropriate list for these questions If you're feeling your oats you can hop onto irc.perl.org #perl and track down obra (aka Jesse). -- Michael G Schwern[EMAIL PROTECTED] http

Re: bug? in Test::More error counting ? MINIMIZED TEST CASE

2003-12-15 Thread Michael G Schwern
. Tests 1 through 5 failed. That might be a problem. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ What about MY need to be generalized and easily dismissed? http://www.goats.com/archive/000221.html

Re: Default test name?

2004-02-02 Thread Michael G Schwern
over them. I, the library designer, write isa_ok() and can_ok() as convenience functions. Part of this convenience is providing sensible default names so you don't have to. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ If you got the wax out of your ears you

Re: ok(1,1) vs. ok ('foo','foo') in Test::More

2004-02-03 Thread Michael G Schwern
; return $result; } 1; -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ Please Captain, not in front of the Klingons.

Test::ok

2004-02-03 Thread Michael G Schwern
= $TB-is_eq($got, $expected); } $TB-diag($diag) if !$result and @_ == 3; } 1; -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ 3. With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where

Re: changes to T::H to enable continuous testing

2004-02-06 Thread Michael G Schwern
::Straps currently picks these up as type other but it may change to comment later. -- Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/ You and your facts and your physics. Pah, I say. http://www.goats.com/archive/981221.html

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