how to output test::more to a file?

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

  1. everymn

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

  2. everymn

    everymn Guest

    Figured this out thanks...

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

  3. everymn

    Jim Gibson Guest

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...