./devel/p5-Test-Most, Most commonly needed test functions and features

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2014Q1, Version: 0.31nb2, Package name: p5-Test-Most-0.31nb2, Maintainer: pkgsrc-users

This module provides you with the most commonly used testing
functions and gives you a bit more fine-grained control over your
test suite.

use Test::Most tests => 4, 'die';

ok 1, 'Normal calls to ok() should succeed';
is 2, 2, '... as should all passing tests';
eq_or_diff [3], [4], '... but failing tests should die';
ok 4, '... will never get to here';

As you can see, the eq_or_diff test will fail. Because 'die' is in
the import list, the test program will halt at that point.


Required to run:
[devel/p5-Test-Differences] [devel/p5-Test-Harness] [devel/p5-Data-Dumper-Names] [devel/p5-Exception-Class]

Required to build:
[devel/p5-Module-Build]

Master sites: (Expand)

SHA1: fd2e8e2fe794fb10c1f8279322445de0709a17ba
RMD160: f02508bf33a5c02c1813aef6e60db8f7b25bcffa
Filesize: 17.844 KB

Version history: (Expand)