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

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: 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-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: Removing CPAN's dependency on Test::More

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

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

2002-11-11 Thread Michael G Schwern
destruction. - Added example of calculating the number of tests to Test::Tutorial - Peter Scott made the ending logic not fire on child processes when forking. * Test::Builder is once again ithread safe. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern

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

2002-11-11 Thread Michael G Schwern
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/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One 11. Every old idea will be proposed again

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 solve? As long as we're stuck

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

2002-11-11 Thread Michael G Schwern
than $self-{Have_Plan}. http://magnonel.guild.net/~schwern/talks/Refactoring/slides/slide015.html ;-) The nice part about refactorings is they're reversable. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED

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. Schwern [EMAIL

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

2002-11-10 Thread Michael G Schwern
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] Kwalitee Is Job

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: 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 remove a large volume of work

Re: Test::Class - comments wanted

2002-10-14 Thread Michael G Schwern
-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'm open to someone convincing me otherwise. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance

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: [ Memory ] Re: Thought

2002-10-03 Thread Michael G Schwern
::Memory can be left for later, and the functionality of Devel::Memory::Heap can be put into it if it makes sense. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Here's some scholarly-ass opinions...

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::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: 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
. is no longer in the path). '.' won't necessarily be in the path anyway. Sorry, I ment perl's @INC. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Not king yet

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

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: [ken@mathforum.org: Re: [Inline 0.43] insecure dependency when tainting]

2002-08-30 Thread Michael G Schwern
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
? -- 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.

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: [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: Add Test::Harness 2.x Prerequisite to Test::Simple?

2002-08-26 Thread Michael G Schwern
::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 install UNINST=1. -- Michael G. Schwern [EMAIL

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

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: [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

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. Schwern [EMAIL

Re: Help spreading Test

2002-07-31 Thread Michael G Schwern
, you only need to do it once. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One 5. It is always possible to aglutenate multiple separate problems into a single complex interdependent solution

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: 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/perl -w use

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]/msg00224.html

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 whose #

Re: Thread-safe Test::Builder

2002-06-15 Thread Michael G Schwern
On Sat, Jun 15, 2002 at 06:00:44PM +0100, Mark Fowler wrote: I was, out of curiousity, wondering what happened to these changes as they don't seem be in 5.8.0RC1 My time machine's in the shop awaiting a shipment of sky hooks. (Translation: Arthur's patch came after RC1.) As for why it's not

Re: Pondering Test::Depend

2002-06-08 Thread Michael G Schwern
On Sat, Jun 08, 2002 at 10:45:50AM -0700, chromatic wrote: Taking an average test suite as an example, we could have 'foo.t' and 'bar.t', testing Foo.pm and Bar.pm respectively. Bar depends on Foo, and bar.t mocks a couple of methods of Foo. If bar.t uses Test::Depend, it'll pick up

[ANNOUNCE] Test::Harness 2.24

2002-05-30 Thread Michael G Schwern
http://www.pobox.com/~schwern/src/Test-Harness-2.24.tar.gz Two bugs. 2.24 Wed May 29 19:02:18 EDT 2002 * Nikola Knezevic found a bug when tests are completely skipped but no reason is given it was considered a failure. * Made Test::Harness::Straps-analyze_file Test::Harness a

What ever happened to Test::Set?

2002-05-24 Thread Michael G Schwern
There was a big discussion about writing a module to make it easier to test sets and common complex data structures and superceed the paltry eq_* functions in Test::More. http:[EMAIL PROTECTED]/msg01369.html Anyone working towards that? -- This sig file temporarily out of order.

Test::Harness skip reason report change?

2002-04-25 Thread Michael G Schwern
or POSIX unavailable What do people think? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Kids - don't try this at--oh, hell, go ahead, give it a whirl...

Re: [PATCH] use_ok() with pragmas in 5.005_03

2002-04-22 Thread Michael G Schwern
at -e line 1. P.S. Mike, the same thing applies with your mixin.pm gotcha -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One let me think it over while Cheese beats you with a baseball bat.

Re: [PATCH] Make Test::More::can_ok() use objects, not just classes

2002-04-20 Thread Michael G Schwern
patch and also tested that isa_ok() honors isa() overrides. Thanks. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One 4 WHEREAS, the siren song of payola issuing from the discordant calliopes

Re: Starting with a fresh sandbox

2002-04-11 Thread Michael G Schwern
-platform manner. It's usually used to test code that will cause a segfault, but's useful for what you want, too. I've been meaning to make a CPAN version of this code, but I'm out of tuits. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance

Re: Starting with a fresh sandbox

2002-04-11 Thread Michael G Schwern
on its own. Ok: sub test { return unless /\.pm$/; print # compiling $_\n; system(qq{$^X -e 'print eval { require $_; 1 } ? ok\n : not ok\n' }); } use File::Find; find(\test , shift || '.'); adjust as necessary. Doesn't have to be fancy. -- Michael G

Re: Comparing Data Structures Slopply

2002-04-10 Thread Michael G Schwern
a bad name. Don't fixate on it, write Test module with better set handling. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One It's Flypaper Licking time!

Re: Test::Exception... comments?

2002-04-10 Thread Michael G Schwern
On Thu, Apr 11, 2002 at 10:37:10AM +0900, Curt Sampson wrote: On Tue, 9 Apr 2002, Michael G Schwern wrote: I'm not sure exactly what the purpose of this is; your test will still fail if it dies even when not in a lives_ok block, right? It'll fail and take the whole rest of the test

Re: Comparing Data Structures Slopply

2002-04-10 Thread Michael G Schwern
normal comparision functions and becoming more and more out of place in Test::More. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One O you fat bastard anus

Re: Comparing Data Structures Slopply

2002-04-09 Thread Michael G Schwern
On Tue, Apr 09, 2002 at 03:26:21PM +0100, Mark Fowler wrote: There's a lot of other problems like that. So I was thinking of writing Test::Sloppy (aka Test::Fuzzy, aka...) What would it do? (I can show you lots of sloppy tests if you like. :) -- Michael G. Schwern [EMAIL PROTECTED

Re: Comparing Data Structures Slopply

2002-04-09 Thread Michael G Schwern
On Tue, Apr 09, 2002 at 05:02:32PM +0100, Mark Fowler wrote: On Tue, 9 Apr 2002, Michael G Schwern wrote: On Tue, Apr 09, 2002 at 03:26:21PM +0100, Mark Fowler wrote: There's a lot of other problems like that. So I was thinking of writing Test::Sloppy (aka Test::Fuzzy, aka

Re: Test::Exception... comments?

2002-04-09 Thread Michael G Schwern
: dies_ok { div(1,0) } 'div by zero'; like( $@, qr/^Illegal division by zero/ ); Even though you can use throws_ok(), the dies_ok() + $@ combo is more flexible more processing than just a regex needs to be done on $@. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern

Re: Test::Exception... comments?

2002-04-09 Thread Michael G Schwern
. Nope. No more functions in Test::More, too much in there already. I want to encourage the idea of having more than one Test::* module in use in a test. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job

Re: Test::Builder and Test::More change requests

2002-04-04 Thread Michael G Schwern
, Test::Data::Deep, etc... -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Lesbian lovers return to fourth grade slogans EAT SOME PASTE, they cry sobbing lesbian excluded from the party allergic

Re: Test::Harness Conditional Test Execution

2002-03-25 Thread Michael G Schwern
On Tue, Mar 26, 2002 at 01:47:38PM +0900, Curt Sampson wrote: On Mon, 25 Mar 2002, Michael G Schwern wrote: 2. Skip test of code where dependencies have been tested and found to be failing. For example, if the test for the database connection module fails, nothing

Re: Test::Harness Conditional Test Execution

2002-03-24 Thread Michael G Schwern
that this is supposed to be a file containing the test results, not the test code. Hmmm. Nope. Your original impression is correct. Docs are just poorly worded. Just touched it up. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL

Re: How to test for the absence of an infinite loop?

2002-03-18 Thread Michael G Schwern
. Checking to see if Win32 can pseudo-fork is a little more complicated than alarm (see t/op/fork.t). If you provide both methods you can cover Unix, Win32 and a bunch of other platforms. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL

How to test that flock works? (was Re: How to test for the absence of an infinite loop?)

2002-03-18 Thread Michael G Schwern
::Module::unlock = $orig_unlock; } Sorry I can't be more specific. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Realize this, sweetheart, I'm squeezing my poodle.

Re: How to test for the absence of an infinite loop?

2002-03-18 Thread Michael G Schwern
On Mon, Mar 18, 2002 at 02:14:23PM -0700, Sean M. Burke wrote: At 03:26 2002-03-18 -0500, Michael G Schwern wrote: [...]Use alarm and skip the test if $Config{d_alarm} is false (see t/op/alarm.t for an example). If you think the infinite loop is due to a programming glitch, as opposed

[ANNOUNCE] Test::Harness 2.02

2002-03-14 Thread Michael G Schwern
the exit and wait codes of the test to the analyze_file() results. A minor release, mostly to fix the Straps bug. Test::Harness::Straps is now in active use thanks to the Good People at Mitel Networks (see also E-Smith) and will be firming up rapidly. -- Michael G. Schwern [EMAIL

[ANNOUNCE] Test::Simple/More/Builder 0.42

2002-03-06 Thread Michael G Schwern
(see what happens when you forget to test things?) - The change in is()'s undef/'' handling in 0.34 was an API change, but I forgot to declare it as such. - The apostrophilic jihad attacks! Philip Newtons patch for grammar mistakes in the doc's. -- Michael G. Schwern

How To Test Test Destructive Things

2002-03-06 Thread Michael G Schwern
by the rest of the normal test script. And that's how you can test something that's otherwise destructive. Questions? :) [1] Its not just stop. Its stop with extreme prejudice. It kills all existing connections. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl

[ANNOUNCE] Test::Inline 0.14

2002-02-28 Thread Michael G Schwern
paying me to write tests. :) -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Don't worry, baby, my wrath can be pretty groovy. http://www.goats.com/archive/980804.html

Re: More Test::Builder::Test stuff

2002-02-21 Thread Michael G Schwern
not having Term::ANSIColor in the tests you can do: unshift @INC, 't/lib/fake'; ... and any unshielded require/use of Term::ANSIColor will explode convincingly. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED

Re: More Test::Builder::Test stuff

2002-02-21 Thread Michael G Schwern
On Thu, Feb 21, 2002 at 10:05:09AM -0500, Michael G Schwern wrote: Simpler thing to do would be to create t/lib/fake/Term/ANSIColor.pm which is something like: package Term::ANSIColor; die, die, die, die, die Can't locate Term/ANSIColor.pm in \@INC\n; Sorry, that should

Make Schwern poor in just 20 easy steps!

2002-02-18 Thread Michael G Schwern
::Cmd Net::Domain Net::POP3 O Pod::Html Pod::Select -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One purl Hey Schwern! honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk

Re: VMS status @14710

2002-02-16 Thread Michael G Schwern
runs if File::Glob is loaded. if( $INC{'File/Glob.pm'} ) { ...glob('0') test... } else { print ok 8 # skip: File::Glob emulated Unixism\n; } -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED

Re: Interactive tests?

2002-02-15 Thread Michael G Schwern
. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One They had applied the blinders of steam-grilled hamburgers to my eyes.

[ANNOUNCE] Test 1.20

2002-02-07 Thread Michael G Schwern
Test::More behaves (surprise). 2002-02-07 Michael G Schwern [EMAIL PROTECTED] * Release 1.20 * Failure diagnostics now go to STDERR so they show up in 'make test'. - noted in the docs that this module is no longer being developed. 2001-12-17 Michael G

Coming soon to Module::Info...

2002-02-02 Thread Michael G Schwern
to _setup_symbols at /usr/share/perl5/CGI.pm line 226 -- 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] Module::Info 0.11

2002-02-02 Thread Michael G Schwern
of failing silently * Added a THANKS section. 0.10 Wed Dec 12 05:40:14 EST 2001 * Windows filenames would cause subroutines() and modules_used() to choke. (Thanks to Alessandro Forghieri for the patch) -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com

Alternative code review ideas?

2002-01-28 Thread Michael G Schwern
requirement. (You guys solve any of this, Tony?) So I'm looking for something like the above, but that meets my criteria of being easy to learn, teach, accept and hard to screw up. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL

Re: Compiled programs to keep BEGIN blocks?

2002-01-14 Thread Michael G Schwern
On Mon, Jan 14, 2002 at 11:13:27AM +0100, Rafael Garcia-Suarez wrote: On 2002.01.13 22:25 Michael G Schwern wrote: Why would this: BEGIN { push @INC, 'foo'; } put 'foo' into @INC twice if it were compiled? The compiled program should not be storing the post

Re: Compiled programs to keep BEGIN blocks? (was Re: [RFC] Switch to make Test::Builder output even if $^C ( for B::C ))

2002-01-14 Thread Michael G Schwern
On Mon, Jan 14, 2002 at 04:16:49PM +, Piers Cawley wrote: Michael G Schwern [EMAIL PROTECTED] writes: On Mon, Jan 14, 2002 at 10:23:46AM +, Piers Cawley wrote: Um... You're wrong. If you do need 'startup time' initialization then you should do it in an INIT block. If I may quote

Re: Compiled programs to keep BEGIN blocks?

2002-01-14 Thread Michael G Schwern
of @INC (and whatever else B::C might have trouble getting at) and pass that information along. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Maybe they hooked you up with one of those ass-making

Compiled programs to keep BEGIN blocks? (was Re: [RFC] Switch to make Test::Builder output even if $^C ( for B::C ))

2002-01-13 Thread Michael G Schwern
load-time checks and logic inside BEGIN blocks. Why would this: BEGIN { push @INC, 'foo'; } put 'foo' into @INC twice if it were compiled? The compiled program should not be storing the post-BEGIN value of @INC, it should store the original value at startup. -- Michael G

Re: [RFC] Switch to make Test::Builder output even if $^C ( for B::C )

2002-01-12 Thread Michael G Schwern
. Why would the compiled program print nothing normally? $^C should not be set. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Instant Cross-Platform CGI Programming in Visual Perl 5 with Object

Re: [PATCH t/run/kill_perl.t t/test.pl] Seperating kill_perl()

2002-01-12 Thread Michael G Schwern
::dump()...). fresh_perl()? kamikaze_perl()? At 5am the imagination is the first to go. I guess the idea is to run a program in a seperate process and compare the output. A cross between runperl() and is(). is_runperl() doesn't seem like a good idea. cmp_runperl? cmp_prog? -- Michael G

[PATCH t/run/kill_perl.t t/test.pl] Seperating kill_perl()

2002-01-11 Thread Michael G Schwern
; -print STDERR # GOT:\n$results\n; -} -printf %sok %d%s\n, ($ok ? '' : not ), $test, - length $name ? - $name : $name; -$test++; +kill_perl($prog, $expected, { switches = $switch }, $name); } __END__ -- Michael G. Schwern [EMAIL PROTECTED

[ANNOUNCE] Test::Harness 2.01 now with Test::Harness::Straps example

2002-01-07 Thread Michael G Schwern
discuss the Straps example in a seperate post. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One purl Hey, Schwern! THERE IS A HUGE GAZORGANSPLATTEDFARTMONGERING- LIGHTENINGBEASTASAURSOPOD BEHIND

Re: [RFC] Switch to make Test::Builder output even if $^C ( for B::C )

2002-01-05 Thread Michael G Schwern
compiling, I'm not quite following. Assume you had the I_WANT_OUTPUT_DURING_COMPILE environment variable could you show how you'd be using it? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One

Re: Testing Tests

2002-01-04 Thread Michael G Schwern
::Simple/More/Builder's t/fail*.t tests do this in varying levels of contortions. They're a bit brutish since they largely predate Test::Builder and can't trust it anyway, having to do odd things like writing its own ok() function. -- Michael G. Schwern [EMAIL PROTECTED]http

Re: [ANNOUNCE] Test::Simple/More/Builder/Tutorial 0.40

2001-12-22 Thread Michael G Schwern
On Sat, Dec 22, 2001 at 03:13:12PM -0500, Aaron J Mackey wrote: On Fri, 21 Dec 2001, Michael G Schwern wrote: I can never keep it straight when to put an apostrophe on /it'?s/ It's very simple. If you can replace the its with it is, then there's an apostrophe to denote the contraction

Re: [ANNOUNCE] Test::Simple/More/Builder/Tutorial 0.40

2001-12-22 Thread Michael G Schwern
On Sat, Dec 22, 2001 at 09:48:22AM +0100, Philip Newton wrote: after meditating on this: http://www.angryflower.com/bobsqu.gif That oversimplifies things a bit; the rule possessive things take apostrophe-s doesn't apply to pronouns. Fascinating. Thanks for the patch. -- Michael G

Re: is() with arbitrary comparisions

2001-12-19 Thread Michael G Schwern
On Tue, Dec 11, 2001 at 01:52:12PM -0500, Kirrily Robert wrote: Are we doing the time warp again, or are the Huskies just tired of pulling the packets across the border? How about: compare($foo, =, $bar) cmp_ok(). Close. -- Michael G. Schwern [EMAIL PROTECTED]http

Re: Untested modules update: There's more than we thought

2001-12-17 Thread Michael G Schwern
was literally just about to release 0.40 and I HAD to go read my email first. Either way, your above ok() solutions still give you no failure diagnostics, which is the whole point. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL

Re: HELP: mod_perl and Apache::Cookie

2001-12-17 Thread Michael G Schwern
. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One There is nothing wrong. We have taken control of this sig file. We will return it to you as soon as you are groovy.

[ANNOUNCE] Test::Simple/More/Builder/Tutorial 0.40

2001-12-17 Thread Michael G Schwern
() Combines a todo test with skip's ability to jump whole blocks. Useful for when a todo test can't be run at all because it will die or otherwise cause havoc. Doesn't come up all that often, but I found myself needing it a few times in the core tests. -- Michael G. Schwern [EMAIL

Re: [ANNOUNCE] Test::Simple/More/Builder/Tutorial 0.40

2001-12-17 Thread Michael G Schwern
. Couldn't now even if I wanted to. Been around too long, would break too many tests. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Stupid am I? Stupid like a fox!

[ANNOUNCE] Test 1.19 license change and mod_perl bug fixes

2001-12-17 Thread Michael G Schwern
Stas Bekman found a problem with the globals in Test.pm when run under mod_perl (ie. persistently). Test::More probably has the same problem. Also, the license has been changed from Artistic-only to same as Perl. http://www.pobox.com/~schwern/src/Test-1.19.tar.gz 2001-12-17 Michael G Schwern

[ANNOUNCE] Test::Harness 2.00_05 (RC 3)

2001-12-17 Thread Michael G Schwern
nit in 5.004_04 - Little speling mistak -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Hold on while I slip into something a little more naked.

Re: Untested modules update: There's more than we thought

2001-12-16 Thread Michael G Schwern
') } ); or even: ok (eval { ref($foo) $foo-isa('Foo') }); As Kurt already pointed out, you can do: ok( UNIVERSAL::isa($foo, 'Foo') ); but if it fails you have no idea what $foo was. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality

Re: lib.t (was Re: Untested modules update: There's more than we thought)

2001-12-16 Thread Michael G Schwern
contains by directly reading it? I'm assuming that it's safe for the test to assume that do/require/use work with @INC correctly. Technically, yeah. But Brent's already gone that extra mile. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance

Re: [ANNOUNCE] Test::Harness 2.00 release candiate 2

2001-12-16 Thread Michael G Schwern
On Sun, Dec 16, 2001 at 10:53:14PM +0100, Abe Timmerman wrote: Doh, my bad, I had 2.00_01 hanging around on my system. Works ok on both my regular ActivePerl 5.6.1 (build 628) and freshly compiled bleadperl Yay! Thanks. -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com

Re: Untested modules update: There's more than we thought

2001-12-16 Thread Michael G Schwern
conforming, objects, just change the tests. PS Do you know of anything that does return unpredictably typed objects? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One 36 haikus would scare

  1   2   >