From Test::Simple to Test::Extreme - Writing a CPAN-Style Test Suite 18

Building a CPAN module

Adding Tests

  • make a test directory:

        $ mkdir t
    
  • create a test file:

        $ touch t/01-preflight.t
    
  • edit the module and its test suite:

        $ $EDITOR lib/Rocket/PreFlight.pm t/01-preflight.t
    
  • run your test suite:

        $ perl -Ilib t/01-preflight.t
    
  • See listings:

 

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