Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: getting is_deeply test::more to print to log

by vinoth.ree (Monsignor)
on Aug 28, 2015 at 15:29 UTC ( [id://1140355]=note: print w/replies, xml ) Need Help??


in reply to getting is_deeply test::more to print to log

are you looking for this?

# run perl tests in DIRTESTS, save results in DIRLOG # and send email alarm if tests fail LOG=$DIRLOG/my_tests_`date +%y%m%d.log` cd $DIRTESTS prove *.t | tee $LOG if [ `cat $LOG | grep PASS | wc -l` == '0' ]; then ( echo "FROM: prove" echo "TO: you@somewhere.com" echo "SUBJECT: test failed" cat $LOG ) | sendmail -t fi

All is well. I learn by answering your questions...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1140355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-29 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found