Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Test harness, test more

by palette (Scribe)
on Jun 02, 2008 at 10:38 UTC ( #689665=perlquestion: print w/replies, xml ) Need Help??

palette has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Test harness, test more
by marto (Cardinal) on Jun 02, 2008 at 10:52 UTC
Re: Test harness, test more
by Arunbear (Prior) on Jun 02, 2008 at 15:08 UTC
    You haven't shown any code, but you'll probably want to add
    $Test::Harness::Verbose = 1;
    to your script to see all the output (see Test::Harness docs).
Re: Test harness, test more
by Bloodnok (Vicar) on Jun 02, 2008 at 10:55 UTC
    Hi ,

    I'm not sure I understand your question/problem - would it be possible to provide output samples etc. in order to better put your question into context ?

    Is the problem that you'd like to both see the outputs as the tests are running as well as have the test run logged ?

    If so, try using the tee command (I assume you're using *NIX) ... make test 2>&1 | tee log

    At last, a user level that best describes my experience :-))
Re: Test harness, test more
by chromatic (Archbishop) on Jun 02, 2008 at 19:33 UTC
    prove -vm t/*.t > some_file.log
      prove -vm t/*.t

      Gives me: Unknown option: m. Maybe you meant prove -vb t/*.t ?

      BTW, thanks for the tip, I was used to run make test TEST_VERBOSE=1 before, but prove is much shorter and lets you choose the tests to run.

        It looks like the -m switch came about in newer versions of TAP::Harness; I'm using 3.02:

             -m,  --merge       Merge test scripts' STDERR with their STDOUT.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://689665]
Approved by Arunbear
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2023-05-31 15:38 GMT
Find Nodes?
    Voting Booth?

    No recent polls found