Connecting Tech Pros Worldwide Forums | Help | Site Map

how to output test::more to a file?

everymn@yahoo.com
Guest
 
Posts: n/a
#1: Nov 23 '07
Hi,

Could someone tell me how this could be accomplished? I've tried

open STDOUT "$testfile";

before calling is() or the other test functions but the output still
goes to the console. Simple redirection after the test function
statement doesn't seem to work either.

Thanks
Eric

everymn@yahoo.com
Guest
 
Posts: n/a
#2: Nov 23 '07

re: how to output test::more to a file?


Figured this out thanks...

Test::More->builder->output ("$RESULTS_PATH")
Jim Gibson
Guest
 
Posts: n/a
#3: Nov 23 '07

re: how to output test::more to a file?


In article <md9dk3l3ptg7mdfjahcc812j3po7sgol94@4ax.com>,
<everymn@yahoo.comwrote:
Quote:
Figured this out thanks...
>
Test::More->builder->output ("$RESULTS_PATH")
Glad that you were able to answer your own question. You should be
aware that the newsgroup comp.lang.perl is defunct. Try
comp.lang.perl.misc in the future for better results.

--
Jim Gibson

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Closed Thread