You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
schwern edited this page Aug 1, 2012
·
4 revisions
What is test-more?
Test::More is the most popular library for writing tests in Perl.
use Test::More tests => 1;
is( 1 + 1, 2, "one plus one is two" );
test-more contains four libraries.
Test::Tutorial - Let us take you by the hand and walk through writing your first tests in Perl. Testing is not hard, and it's just like writing any other program.
Test::Simple - A gentle introduction to writing tests in Perl using the single most powerful testing function, ok().
Test::More - Upward compatible with Test::Simple, Test::More provides most of the testing functions you will need. This is your Perl testing bread and butter.
Test::Builder - When Test::More doesn't do it, write your own test functions using Test::Builder!