Re: ANNOUNCE: Pod::Coverage

2001-08-27 Thread Barrie Slaymaker
On Sun, Aug 26, 2001 at 03:02:16PM +0100, Richard Clamp wrote: > > Caveats, this isn't heading to CPAN today at the testsuite is far from > comprehensive, and I'd like some feedback before I release it. That > and I was due to meet people at the pub an hour ago. How would I keep it from complai

Re: ANNOUNCE Pod::Tests is now Test::Inline

2001-08-29 Thread Barrie Slaymaker
On Wed, Aug 29, 2001 at 01:51:48AM -0400, Michael G Schwern wrote: > > First, the syntax for the code examples has changed. Instead of > "=also begin/end example" it's "=for example begin/end". This doesn't > cause existing POD viewers to choke. So they just silently throw away all the example

Proper way to build a mix-in library for Test::More?

2001-12-12 Thread Barrie Slaymaker
I've written a Test::Differences[1] that outputs things like: not ok 5 # Failed test 5 in blib/lib/Test/Differences.pm at line 221 fail #4 *TODO* # +-+--+ # | Got | Expected | # +-+--+ # | a\n | a\n | # >x* b\n < # | c\n | c\n

Re: Proper way to build a mix-in library for Test::More?

2001-12-12 Thread Barrie Slaymaker
On Wed, Dec 12, 2001 at 08:54:51PM -0500, Michael G Schwern wrote: > On Wed, Dec 12, 2001 at 04:38:20PM -0500, Barrie Slaymaker wrote: > > I've written a Test::Differences[1] that outputs things like: > > > > not ok 5 > > # Failed test 5 in blib/lib/Test

CPAN Upload: R/RB/RBS/Test-Differences-0.2.tar.gz

2001-12-13 Thread Barrie Slaymaker
ss this behavior if you don't like the namespace pollution. At this time, each data structure is flattened independantly, which looks goofy if one goes through Data::Dumper and the other doesn't. AUTHOR Barrie Slaymaker <[EMAIL PROTECTED]> LICENSE Copyright 2001 Barrie Slaymaker, All Rights Reserved. You may use this software under the terms of the GNU public license, any version, or the Artistic license.

v0.3 [Was: CPAN Upload: R/RB/RBS/Test-Differences-0.2.tar.gz]

2001-12-14 Thread Barrie Slaymaker
Thanks both for the testing & bugfixes. Here's the escaping portion of changes from 0.2 to 0.3, does this seem better? There's also a test script for the escaping now :). I'd love to test characters for codepoints > 0xff, but they're borken / unsupported in all released perls, I think. Other r

Re: v0.3 [Was: CPAN Upload: R/RB/RBS/Test-Differences-0.2.tar.gz]

2001-12-15 Thread Barrie Slaymaker
Now I see what you're after with the -M approach, thanks for the example. On Sat, Dec 15, 2001 at 07:54:17PM +0900, Tatsuhiko Miyagawa wrote: > Two cases for using Test::* > > 1) Testing our application (for paying work) > > it's good to use T::D in the first place. We're agreed here :). > 2

Re: v0.3 [Was: CPAN Upload: R/RB/RBS/Test-Differences-0.2.tar.gz]

2001-12-15 Thread Barrie Slaymaker
On Sat, Dec 15, 2001 at 01:56:19AM -0500, Michael G Schwern wrote: > On Sat, Dec 15, 2001 at 02:41:13AM -0500, Barrie Slaymaker wrote: > > There's also a test script for the escaping now :). I'd love to test > > characters for codepoints > 0xff, but they'r

Re: v0.3 [Was: CPAN Upload: R/RB/RBS/Test-Differences-0.2.tar.gz]

2001-12-15 Thread Barrie Slaymaker
On Sat, Dec 15, 2001 at 01:18:23PM -0500, Michael G Schwern wrote: > On Sat, Dec 15, 2001 at 10:52:07AM -0700, chromatic wrote: > > On Sat, 15 Dec 2001 07:10:33 -0700, Barrie Slaymaker wrote: > > > > > How about having Test::More use eq_or_diff_data() in is_deeply() if

emitting messages in Test::*

2001-12-19 Thread Barrie Slaymaker
I noticed that Test::Builder offers the ability to emit messages with s/^/# /mg, which is very nice. Can/should this capability be exposed via Test::Simple, Test::More, etc? Sometimes it's nice to explain what to do about a test failure that may be an intermittent failure, or to warn that they s

Re: v0.3 [Was: CPAN Upload: R/RB/RBS/Test-Differences-0.2.tar.gz]

2001-12-19 Thread Barrie Slaymaker
On Mon, Dec 17, 2001 at 04:10:30PM +0900, Tatsuhiko Miyagawa wrote: > On Sat, 15 Dec 2001 09:10:33 -0500 > Barrie Slaymaker <[EMAIL PROTECTED]> wrote: > > > Now I see what you're after with the -M approach, thanks for the > > example. > > Cool. > &

Re: [PATCH] Re: emitting messages in Test::*

2001-12-19 Thread Barrie Slaymaker
On Wed, Dec 19, 2001 at 12:20:35PM -0700, chromatic wrote: > On Wed, 19 Dec 2001 05:12:05 -0700, Michael G Schwern wrote: > > > Its been on the TODO list to toss a diag() into Test::More. > > > > ok( ... ) || diag(...); > > > > for some reason I keep putting it off. > > > > Test::Simple wo

Re: [PATCH] Re: emitting messages in Test::*

2001-12-21 Thread Barrie Slaymaker
On Wed, Dec 19, 2001 at 04:11:00PM -0500, Barrie Slaymaker wrote: > > Looks nice to me (not that I have anything to do with Schwern's modules > :), but I think it needs to be in Test::More instead of Test::Simple. Sorry, misread the patch (gah, need a vacation). - Barrie

Fwd: CPAN Upload: R/RB/RBS/Test-Differences-0.411.tar.gz

2001-12-21 Thread Barrie Slaymaker
This fixes a bug or two and improves readability by removing the middle column of indexes if and only if it is identical to the first column and by performing selective whitespace excaping to highlight differences in whitespace (see below). - Barrie t/99example1..3 not ok 1 - differences in

Re: Alternative code review ideas?

2002-01-30 Thread Barrie Slaymaker
On Wed, Jan 30, 2002 at 02:24:59AM +0900, Tatsuhiko Miyagawa wrote: > Recently I've been doing this with two ways: > > 1) Unit testing for "Model/Control" classes *nod* > 2) Acceptance Testing with Live HTTP, DB Server > > We've acomplished with following tools: > > * shell script, to setup/t

[ANNOUNCE] Test-Differences 0.43

2002-05-13 Thread Barrie Slaymaker
As part of a much more detailed email about some cool code he's writing, Yves Orton <[EMAIL PROTECTED]> wrote (in part): > > my ($ar,$x,$y)=([]); > $ar->[0]=\$ar->[1]; > $ar->[1]=\$ar->[0]; > $x=\$y; > $y=\$x; > > Test::Differences::eq_or_diff($ar,[$x,$y]); > > Outpu

[ANNOUNCE] Test-Differences-0.45, Text-Diff-0.34

2002-07-14 Thread Barrie Slaymaker
Test-Differences-45 is now out with the below patch. Also: I released a new Text::Diff, 0.35 (which Test-Differences-0.45 requires) that fixes and improves the escaping logic so that "\t" and "\\t" are escaped properly ("\\t" was not being escaped properly) when escaping. Escaping (still) is onl

Test::Verbose && tv

2002-09-11 Thread Barrie Slaymaker
-n, --dry-run, --just-print, --recon Print out the make command but don't run it. -h, -?, --help Print out full help text (this page). See Test::Verbose for details. COPYRIGHT Copyright 2002, R. Barrie Slaymaker, Jr. All Rights Reserved. LICENSE You may use this under the terms of any of the BSD, Artistic, or GPL licenses. AUTHOR Barrie Slaymaker <[EMAIL PROTECTED]>

Re: Help spreading Test

2002-09-19 Thread Barrie Slaymaker
On Fri, Sep 13, 2002 at 07:22:04AM -0700, David Wheeler wrote: > On Friday, September 13, 2002, at 06:25 AM, Johan Vromans wrote: > > >Tchk. I think it's quite nice and powerful to be able to download an > >arbitrary module's .tar.gz and get it going with the simple "perl > >Makefile.PL; make al

[ANNOUNCE] tv (Test::Verbose 0.001)

2002-10-24 Thread Barrie Slaymaker
New! Improved! As Seen On TV!! ahem. tv is a command bundled with Test::Verbose that puts an easier, smarter interface around the ExtUtils testing system. Aside from easing debugging access (see below), the main use of tv is to run test scripts in verbose mode, either by naming them or by naming

Graphically depicting coverage vs. test results

2002-12-10 Thread Barrie Slaymaker
Here's an interesting way of depicting the statements that are likely to have cause test failures: http://www.cc.gatech.edu/aristotle/Tools/tarantula/ Tarantula displays each source code statement using color models that reflect its relative success rate of its execution by the test

[RFC] Module::Husbandry

2002-12-20 Thread Barrie Slaymaker
Part of QA is defining best practices. I've been encoding a few operations I use a lot when writing new perl module distributions in to script form to make my code and POD more consistent. Here's a prerelease of them: http://users.telerama.com/~rbs/src/Module-Husbandry-0.0001.tar.gz and the

Re: [RFC] Module::Husbandry

2002-12-20 Thread Barrie Slaymaker
On Fri, Dec 20, 2002 at 08:17:16AM -0500, darren chamberlain wrote: > * Barrie Slaymaker <[EMAIL PROTECTED]> [2002-12-20 04:05]: > > Part of QA is defining best practices. I've been encoding a few > > operations I use a lot when writing new perl module distributions in

Re: [RFC] Module::Husbandry

2002-12-20 Thread Barrie Slaymaker
On Fri, Dec 20, 2002 at 09:12:09AM -0500, darren chamberlain wrote: > * Barrie Slaymaker <[EMAIL PROTECTED]> [2002-12-20 08:52]: > > I've kludged code to peer in to TT2 templates to get at [%META%] > > declarations (it does not allow this by default AFAICS, surpris

[OT] TT2 docs

2002-12-20 Thread Barrie Slaymaker
On Fri, Dec 20, 2002 at 09:54:50AM -0500, darren chamberlain wrote: > > The docs for Template::Provider state: > > fetch($name) fetch()ing's the easy part. Even *I* got that far long ago. It's the fact that you can coax metadata out of the template objects with AUTOLOADed methods that I didn