FreeBSD Ports

devel/p5-Test-TableDriven 0.02_2

Write tests, not scripts that run them

Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
8.8 KiB, 14.8 KiB installed

Description

Writing table-driven tests is usually a good idea. Adding a test case doesn't require adding code, so it's easy to avoid fucking up the other tests. However, actually going from a table of tests to a test that runs is non-trivial.

Test::TableDriven makes writing the test drivers trivial. You simply define your test cases and write a function that turns the input data into output data to compare against. Test::TableDriven will compute how many tests need to be run, and then run the tests.

Concentrate on your data and what you're testing, not plan tests = scalar keys %test_cases> and a big foreach loop.

Install

As a binary package — by origin, or by package name:

pkg install devel/p5-Test-TableDriven
pkg install p5-Test-TableDriven

From the ports tree:

cd /usr/ports/devel/p5-Test-TableDriven/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Test-TableDriven>0:devel/p5-Test-TableDriven

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.02_20.02_20.02_20.02_20.02_2
FreeBSD:14:quarterly0.02_20.02_2n/a0.02_20.02_2
FreeBSD:15:latest0.02_20.02_2n/a0.02_20.02_2
FreeBSD:15:quarterly0.02_20.02_2n/an/an/a
FreeBSD:16:latest0.02_20.02_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

All build dependencies 1
All run dependencies 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Test/TableDriven.pm
  • %%PERL5_MAN3%%/Test::TableDriven.3.gz
distinfo 1
FileSizeSHA256
Test-TableDriven-0.02.tar.gz13735425878afcf2a14e047caf891b1915e9f5ffb036941609c438e0dfbd1b5b1859a
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.