From Test::Simple to Test::Extreme - The Core Test::* Modules 11

Test::Harness

  • When you run 'make test' during the install of a CPAN module, the following happens:

        $ perl -e 'use Test::Harness qw(runtests); runtests @ARGV;' *.t
    
  • Test::Harness is the Perl module that knows how to read the "ok/not ok" protocol.

  • Test::Harness reports statistics like:

        "2 of 6 subtests failed.  60% ok."
    

 

YAPC::CA << Previous | Index | Next >>
Copyright © 2003 Michael Graham