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-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 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 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 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

Tagging tests

2012-04-24 Thread Daniel Perrett
Is there any way to 'tag' tests in Perl? What I mean is, that ideally, if you tagged all your tests according to the functionality they depended on, you could use the tags to more easily work out what was going wrong. # Looks like you failed 21 tests of 75. # Failures by tag: # syntax: 0/50 # l