Re: Test::Cmd -- Recommended?

2005-07-12 Thread Nik Clayton

Ian Langworth wrote:

On 7/8/05, James E Keenan <[EMAIL PROTECTED]> wrote:


One other curiosum:  As a result of my Phalanx work, I've gotten in the
habit of using File::Temp to create 'anonymous' directories and files in
which to conduct testing. 


This is one of the many features of Test::Cmd, which I a was about to
recommend. However, I remember being discouraged from using it, but
I'm not sure from where or whom.

Does anyone use Test::Cmd? Are there features in it that you like? Is
it overcomplicated? Should it be updated to use Test::Builder? Do
these pants make my butt look big?


I use it daily (well, tests that I've written using it get run daily, 
which is almost the same thing).  I quite like it, it certainly let me 
get the job done.


Looking through it now I think it might benefit from being pared down a 
little.  The match* and diff* methods could probably be removed in 
favour of functionality in Test::More or Test::Diff, and merging in the 
functionality from Test::Expect would probably be useful.


N


Re: Test::Cmd -- Recommended?

2005-07-11 Thread Michael G Schwern
On Mon, Jul 11, 2005 at 10:56:36PM -0400, Ian Langworth wrote:
> This is one of the many features of Test::Cmd, which I a was about to
> recommend. However, I remember being discouraged from using it, but
> I'm not sure from where or whom.
> 
> Does anyone use Test::Cmd? Are there features in it that you like? Is
> it overcomplicated? Should it be updated to use Test::Builder? 

I don't think Test::Cmd actually does any testing.  Looking at the docs it
seems you have to pass the results to one testing library or another.
Its just a bunch of helpful utilities for running external programs and
trapping the output, something which is very useful.

I think what it really needs more than anything is a documentation overhaul.
The SYNOPSIS is a daunting list of methods.  The first few vital pages of
the docs are used to describe using Test::Cmd with various testing systems
instead of talking about Test::Cmd.  And then you get a big list of methods.

Steven Knight hasn't published anything to CPAN since Sep 2001.  Someone
should take this module over.


> Do these pants make my butt look big?

No, but that sweater is rediculous.


-- 
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern
'All anyone gets in a mirror is themselves,' she said. 'But what you
gets in a good gumbo is everything.'
-- "Witches Abroad" by Terry Prachett


Test::Cmd -- Recommended?

2005-07-11 Thread Ian Langworth
On 7/8/05, James E Keenan <[EMAIL PROTECTED]> wrote:

> One other curiosum:  As a result of my Phalanx work, I've gotten in the
> habit of using File::Temp to create 'anonymous' directories and files in
> which to conduct testing. 

This is one of the many features of Test::Cmd, which I a was about to
recommend. However, I remember being discouraged from using it, but
I'm not sure from where or whom.

Does anyone use Test::Cmd? Are there features in it that you like? Is
it overcomplicated? Should it be updated to use Test::Builder? Do
these pants make my butt look big?

-- 
Ian Langworth