I have written simple Perl test case Example:
use Test::More;
is(2+4,5,"Addtion check");
output on the screen:
Failed test 'Addition test'
at t/simpel_perl_test.t line 2.
got: '6'
expected: '5'
Now I want to print a message in log file and on Screen ?
I am not able use existing Perl modules IO::Tee
in <test case name>.t
to achieve my requirement.
Could you tell how could I write a message on Screen and in a log file in Perl test case ?
Aucun commentaire:
Enregistrer un commentaire