Test-Trap reviews

cpanratings
 

RSS | Module Info | Add a review of Test-Trap

Test-Trap (v0.2.2) ***

No UTF support

To get it work properly one shoud do smth like this
my $got = $trap->stdout;
utf8::decode( $got );

Roman - 2013-11-28T03:43:02 (permalink)

3 out of 3 found this review helpful. Was this review helpful to you?  Yes No

Test-Trap (0.1.1) *****

Excellent!

This module handles a lot of things you want to control during testing, warning, exceptions, IO, ...

It also handles warnings containing embedded "\n" properly unlike Test::Warn.

نديم الخمير - 2008-05-02T02:07:51 (permalink)

2 out of 2 found this review helpful. Was this review helpful to you?  Yes No

Test-Trap (v0.0.21) *****

This is a great module. Using it I was able to refactor the tests of the Test::Run suite and reduce the size by 273 lines. The interface is excellent and very convenient and the module just works.

One tip is that you should use the following "use" statement:

{{{{{{{{{
use Test::Trap qw(
trap $trap
:flow
:stderr(systemsafe)
:stdout(systemsafe)
:warn
);
}}}}}}}}}}}

In order to make sure Test::Trap traps the stdout and stderr of external programs invoked by system() and friends. This wasn't clear from the otherwise helpful documentation.

Shlomi Fish - 2007-03-18T06:50:31 (permalink)

6 out of 6 found this review helpful. Was this review helpful to you?  Yes No