Testing What Was Printed

2005-02-08 Thread Jim Keenan
Using the standard Test::More framework, is it possible to test whether what was printed to a filehandle matches a predetermined string or list of strings? Consider the following: use Test::More tests => 1; is(get_data_count([1..39]), 39, "should be 39 items"); sub

Re: Testing What Was Printed

2005-02-08 Thread David Cantrell
Jim Keenan wrote: Using the standard Test::More framework, is it possible to test whether what was printed to a filehandle matches a predetermined string or list of strings? Would IO::Capture be of help here? -- David Cantrell

Re: Testing What Was Printed

2005-02-08 Thread James E Keenan
David Cantrell wrote: Jim Keenan wrote: Using the standard Test::More framework, is it possible to test whether what was printed to a filehandle matches a predetermined string or list of strings? Would IO::Capture be of help here? Looks promising. Hope to find time today to try it out and report

Re: Testing What Was Printed

2005-02-08 Thread Michael G Schwern
On Mon, Feb 07, 2005 at 12:46:51PM -0800, Jim Keenan wrote: > Using the standard Test::More framework, is it > possible to test whether what was printed to a > filehandle matches a predetermined string or list of > strings? Any number of existing modules can be used which capture the output of a f

Re: eq_array testing values prematurely...

2005-02-08 Thread Michael G Schwern
On Tue, Feb 08, 2005 at 06:58:15AM +, Fergal Daly wrote: > It seems to me that that would just hide other problems. This function is > for comparing 2 arrays and if neither of them things passed in are actually > arrays then it's quite right to issue a warning. Test::More is designed to handl

Re: Test::Unit, ::Class, or ::Inline?

2005-02-08 Thread Adrian Howard
On 7 Feb 2005, at 21:13, Michael G Schwern wrote: On Mon, Feb 07, 2005 at 03:03:29PM +, Adrian Howard wrote: Test::Unit, as mentioned by Curtis, has been abandoned. Has it? I thought that the folk on [EMAIL PROTECTED] had taken it on ? http://groups.yahoo.com/group/PerlUnit/ shows some activity

Devel::Cover and -d:ptkdb report problem, 'make test' does not

2005-02-08 Thread leif . eriksen
QA'ers, Once again I am trying to get a handle on how to track down failures caught only under D::C or the debugger. I've written coverage tests for Ima::DBI,as part of the Phalanx/Kwalitee effort for Class::DBI. And its works fine except under the GUI debugger or D::C For plain make test w