Skip Menu |

This queue is for tickets about the Test-Effects CPAN distribution.

Report information
The Basics
Id: 82009
Status: open
Priority: 0/
Queue: Test-Effects

People
Owner: Nobody in particular
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.001000
Fixed in: (no value)



Subject: Add ability to pass options to Test::Trap
I'd like to be able to test stderr & stdout after running a command via system().  Test::Trap allows for this but requires additional parameters passed to its import routine  It'd be nice if it were possible to do that via Test::Effects.
Subject: Re: [rt.cpan.org #82009] Add ability to pass options to Test::Trap
Date: Wed, 19 Dec 2012 16:25:44 +1100
To: bug-Test-Effects [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Show quoted text
> I'd like to be able to test stderr & stdout after running a command > via system(). Test::Trap allows for this but requires additional > parameters passed to its import routine It'd be nice if it were > possible to do that via Test::Effects.
I've added that to the ToDo list. Meanwhile, I believe you could use this workaround: use Test::Effects; { package Test::Effects; use Test::Trap ':output(systemsafe)'; } # or whatever layers you need Untested, but it should work correctly. Let me know if it doesn't. Damian