Test - provides a simple framework for writing test scripts
use strict; use Test; BEGIN { plan tests => 5, todo => [3,4] } ok(0); #failure ok(1); #success ok(0); #ok, expected failure (see todo above) ok(1); #surprise success! skip($feature_is_missing, sub {...}); #do platform specific test
Test::Harness expects to see particular output when it executes test scripts. This module tries to make conforming just a little bit easier (and less error prone).
NORMAL TESTS
These tests are expected to succeed. If they don't, something is wrong!
SKIPPED TESTS
skip should be used to skip tests for which a platform specific feature isn't available.
skip
TODO TESTS
TODO tests are designed for the purpose of maintaining an executable TODO list. These tests are expected NOT to succeed (otherwise the feature they test would be on the new feature list, not the TODO list).
Packages should NOT be released with successful TODO tests. As soon as a TODO test starts working, it should be promoted to a normal test and the new feature should be documented in the release notes.
Test::Harness and various test coverage analysis tools.
Copyright © 1998 Joshua Nathaniel Pritikin. All rights reserved.
This package is free software and is provided "as is" without express or implied warranty. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html)
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '©'. Assuming CP1252
To install lib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm lib
CPAN shell
perl -MCPAN -e shell install lib
For more information on module installation, please visit the detailed CPAN module installation guide.