From Test::Simple to Test::Extreme - Embedding Tests in Your Code 27

Embedded Tests

Pros and Cons

  • Pros:

    • good for simple "checksum" tests

    • great for testing code examples

  • Cons:

    • bad for complicated tests

    • probably need a separate test script anyway

    • need support in Makefile.PL:

          system("pod2test lib/Rocket/PreFlight.pm t/embedded-Rocket-PreFlight.t");
      
  • See also Test::Extreme in the Bonus Materials section

 

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