8.199. TestProvides a framework for writing test scripts so you don't need to know the particular output that Test::Harness expects to see. Useful if you are writing modules and writing tests for those modules. Provides the following test types:
Test also provides an onfail hook that can trigger additional diagnostics for failures at the end of the test run. To use onfail, pass it an array reference of hash references in which each hash contains at least the package, repetition, and result fields, as well as any expected value or diagnostic string. See the Test manpage for details and examples. Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|