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: Test::Pod 0.95 is out

2003-03-06 Thread schwern
On Tue, Mar 04, 2003 at 09:19:57AM -0600, Andy Lester wrote: Not sure how I feel about this. If you were still using Pod::Checker, I'd definately say it won't fly since it throws so many silly warnings. You mentioned a few, the Empty Paragraph and that you can't use =item foo

Re: Test::Pod 0.95 is out

2003-03-03 Thread schwern
On Mon, Mar 03, 2003 at 02:33:32PM -0600, Andy Lester wrote: There's a new Test::Pod in town, and it uses Sean's Pod::Simple instead of Pod::Checker. Details at http://use.perl.org/~petdance/journal/10867 Comments welcome, of course. The old pod_ok() will still work, but the hoohah

Re: Test::More::is_deeply problems with blessings and stringified refs

2003-02-28 Thread schwern
On Thu, Feb 27, 2003 at 09:21:09PM +, Fergal Daly wrote: I am already not yet convinced. In particular, it makes this sort of test more difficult than it needs be: is_deeply($obj, { foo = 42, bar = 23 }); Absolutely, but there is currently no way to do this is_deeply($obj,

Re: Test::More::is_deeply problems with blessings and stringified refs

2003-02-28 Thread schwern
On Thu, Feb 27, 2003 at 10:03:50PM +, Fergal Daly wrote: - let _deep_check take it's cue from the second argument. If the second argument is blessed then be strict about the classes, if it's unblessed then ignore the classes. This should happen at all levels in the structures.

Re: STDERR tests in Test::Warn?

2003-02-28 Thread schwern
On Fri, Feb 28, 2003 at 11:40:52AM +, Adrian Howard wrote: I always meant to revisit the idea for Test::Output which was intended to be a generic FILEHANDLE output testing module. Allows you to do things like: output_is { hello() } hello world\n, STDOUT, hello world; output_isnt

[PATCH] Test::Pod pod_ok( $foo, NO_POD | POD_OK ) also dogfood.t

2003-02-28 Thread schwern
I'm writing a test which does basic checks on all the code in a repository. It checks that all scripts and modules compile without warnings. I also want to check that all the POD has no errors or warnings. However, a lot of the code has no POD. I don't want to write all the POD right now, but I

Re: pls suggest me huge package in perl with testsuites

2003-02-11 Thread schwern
On Mon, Feb 10, 2003 at 07:21:39PM +0400, Vlad Harchev wrote: But anyway, they more big packages will be recommended, the better, so keep suggesting them :) Off the top of my head, some well tested modules: Math::BigInt Test::More some of the recent stuff by Abigail Test::Harness

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

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
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 BEGIN { use_ok( 'Thread::Pool' ) }... Maybe there is a difference there... Hmmm

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
*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 means we can expand and alter the requirements for running a core test. For example

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

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
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One sun readdened wheat stalks bowing down in autumn sun my mind wanders far -- stimps

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
http://www.pobox.com/~schwern/src/Test-Harness-2.02.tar.gz 2.02 Thu Mar 14 18:06:04 EST 2002 * Ken Williams fixed the long standing $^X bug. * Added HARNESS_VERBOSE * Fixed a bug where Test::Harness::Straps was considering a test that is ok but died as passing. - Added

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

2002-03-06 Thread Michael G Schwern
http://www.pobox.com/~schwern/src/Test-Simple-0.42.tar.gz Small update. Just fixing a bug in T::B-current_test() to actually make it work. Folks who need to do tests with forking and such will be pleased. 0.42 Wed Mar 6 15:00:24 EST 2002 - Setting Test::Builder-current_test() now works

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
http://www.pobox.com/~schwern/src/Test-Inline-0.14.tar.gz 0.14 Thu Feb 28 12:38:53 EST 2002 * pod2test now provides an $Original_File * Fixed handling of print STDERR ... in tests * Fixed $_STDERR_ and $_STDOUT_ so they clear themselves between test blocks (bug reported

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
http://www.pobox.com/~schwern/src/Test-1.20.tar.gz After having it pointed out that all of Test.pm's failure diagnostics were going to STDOUT, and thus not visible via 'make test', I've changed it so that failure diagnostics go to STDERR so they'll always show up. This is similar to the way

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
http://www.pobox.com/~schwern/src/Module-Info-0.11.tar.gz Didn't get quite as far as I'd hoped, but I got the hard part's done. The interesting bit is you can now find every function and method call in a program (I just realized I'm not handling function calls with symbolic refs quite right

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
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One Me? A robot? That's rediculous! For one thing, that doesn't compute at all!

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
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One I have this god-awful need to aquire useless crap!!!

[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
http://www.pobox.com/~schwern/src/Test-Harness-2.01.tar.gz Test::Harness 2.00 didn't cause any disasters (people are actually using it, right?) so here's 2.01. 2.01 Thu Dec 27 18:54:36 EST 2001 * Added 'passing' to the results to tell you if the test passed * Added Test::Harness

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
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One GuRuThuG make a channel called #Perl, and infest it with joking and fun it doesnt make alot of sense.

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
Big release here, folks. Lots of new stuff, knocked off a good chunk of the TODO list. http://www.pobox.com/~schwern/src/Test-Simple-0.40.tar.gz 0.40 Fri Dec 14 15:41:39 EST 2001 * isa_ok() now accepts unblessed references gracefully - Nick Clark found a bug with like() and a regex

  1   2   >