Lines Matching defs:Test
3 package Test;
42 Test - provides a simple framework for writing test scripts
47 use Test;
89 L<Test::Harness|Test::Harness> expects to see.
103 the C<use Test;> statement.
117 use Test;
151 croak "Test::plan(%args): odd number of arguments" if @_ & 1;
152 croak "Test::plan(): should not be called more than once" if $planned;
168 ref $v eq 'CODE' or croak "Test::plan(onfail => $v): must be CODE";
171 else { carp "Test::plan(): skipping unrecognized directive '$k'" }
193 print $TESTOUT "# Using Test.pm version $VERSION\n";
239 This function is the reason for C<Test>'s existence. It's
242 current test number. (That's what C<Test::Harness> wants to see.)
322 C<Test> will interpret this as C<ok(I<arg1>, I<arg2>)>, and probably
402 my $prefix = "Test $ntest";
481 backwards compatibility with older Test.pm versions) start with the
510 # so that Test::Harness can tell it's a skip
627 will fail, since Test.pm considers the second argument to be a regex!
725 L<Test::More> and L<Test::Unit>.
730 L<Test::Harness>
732 L<Test::Simple>, L<Test::More>, L<Devel::Cover>
734 L<Test::Builder> for building your own testing library.
736 L<Test::Unit> is an interesting XUnit-style testing library.
738 L<Test::Inline> and L<SelfTest> let you embed tests in code.