BSD Ports

devel/p5-Test-Base 0.89p0 OpenBSD

data driven test framework

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, perl5

Description

Testing is usually the ugly part of Perl module authoring. Perl gives you a standard way to run tests with Test::Harness, and basic testing primitives with Test::More. After that you are pretty much on your own to develop a testing framework and philosophy. Test::More encourages you to make your own framework by subclassing Test::Builder, but that is not trivial.

Test::Base gives you a way to write your own test framework base class that *is* trivial. In fact it is as simple as two lines:

package MyTestFramework;
use Test::Base -Base;

A module called "MyTestFramework.pm" containing those two lines, will give all the power of Test::More and all the power of Test::Base to every test file that uses it. As you build up the capabilities of "MyTestFramework", your tests will have all of that power as well.

In the other systems

SystemPortVersion
OpenBSDdevel/p5-Test-Base0.89p0
FreeBSDdevel/p5-Test-Base0.89
NetBSDdevel/p5-Test-Base0.89nb9
DragonFlydevel/p5-Test-Base0.89
MidnightBSDdevel/p5-Test-Base0.89
HardenedBSDdevel/p5-Test-Base0.89
GhostBSDdevel/p5-Test-Base0.89

Install

Binary package:

pkg_add p5-Test-Base

From the ports tree:

cd /usr/ports/devel/p5-Test-Base && make install

Dependencies

Run dependencies 1