Re: Testing Output and Functionality

2012-04-24 Thread Jed Lund
Eirik, Thank you for the suggestion. I had not seen Test::Trap in my searches so I will investigate. Best Regards, Jed On Mon, Apr 23, 2012 at 11:44 PM, Eirik Berg Hanssen < eirik-berg.hans...@allverden.no> wrote: > On Tue, Apr 24, 2012 at 6:35 AM, Jed Lund wrote: > >> Hello, >> >> I was won

Re: Testing Output and Functionality

2012-04-24 Thread Jed Lund
David, Thank you for your suggestion. I haven't gone down that road yet so I will try it. Best Regards, Jed On Tue, Apr 24, 2012 at 4:07 AM, David Golden wrote: > On Tue, Apr 24, 2012 at 12:35 AM, Jed Lund wrote: > > I understand that this is a fairly basic question but I am stuck trying >

Re: Testing Output and Functionality

2012-04-24 Thread David Golden
On Tue, Apr 24, 2012 at 12:35 AM, Jed Lund wrote: > I understand that this is a fairly basic question but I am stuck trying to > find the right path forward. It's not entirely basic, because you're testing an array of three "outputs" for each functionality test instead of just one. I'd probably

Re: Testing Output and Functionality

2012-04-24 Thread Eirik Berg Hanssen
On Tue, Apr 24, 2012 at 6:35 AM, Jed Lund wrote: > Hello, > > I was wondering if I could get some pointers towards a module or package > that would allow me to test the functionality of various elements of code > that I was developing while I also tested the STDERR and STDOUT output from > that e

Re: Testing Output and Functionality

2012-04-24 Thread Jed Lund
Andy, Thank you for the reply. I did try Test::Output but I ran into a Smart::Comments incompatibility. This is a sort of corner case to the issue I described where I am trying to print the Smart::Comments but capture the STDOUT output for testing. When I run the following; use Test::Most; use

Re: Testing Output and Functionality

2012-04-23 Thread Andy Lester
On Apr 23, 2012, at 11:35 PM, Jed Lund wrote: > that element of code? I have been hunting around CPAN for the right fit > but so far I have only found STDERR/STDOUT tests or functionality tests not > a way to test both results from the same method call. Sounds like you're looking for Test::Out

Testing Output and Functionality

2012-04-23 Thread Jed Lund
Hello, I was wondering if I could get some pointers towards a module or package that would allow me to test the functionality of various elements of code that I was developing while I also tested the STDERR and STDOUT output from that element of code? I have been hunting around CPAN for the right