how to output test::more to a file?

Discussion in 'Perl' started by everymn@yahoo.com, Nov 23, 2007.

  1. Guest

    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
     
    , Nov 23, 2007
    #1
    1. Advertising

  2. Guest

    Figured this out thanks...

    Test::More->builder->output ("$RESULTS_PATH")
     
    , Nov 23, 2007
    #2
    1. Advertising

  3. Jim Gibson Guest

    In article <>,
    <> wrote:

    > 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
     
    Jim Gibson, Nov 23, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. kanchy kang
    Replies:
    2
    Views:
    375
    Magnus Lycka
    Feb 24, 2006
  2. Michael
    Replies:
    4
    Views:
    418
    Matt Hammond
    Jun 26, 2006
  3. Skybuck Flying

    Call oddities: &Test() vs &Test vs Test

    Skybuck Flying, Oct 4, 2009, in forum: C Programming
    Replies:
    1
    Views:
    707
    Skybuck Flying
    Oct 4, 2009
  4. Robert Klemme

    With a Ruby Yell: more, more more!

    Robert Klemme, Sep 28, 2005, in forum: Ruby
    Replies:
    5
    Views:
    218
    Jeff Wood
    Sep 29, 2005
  5. Hunt Jon
    Replies:
    1
    Views:
    112
    Patrick Doyle
    Dec 15, 2008
Loading...

Share This Page