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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.02_2 | 0.02_2 | 0.02_2 | 0.02_2 | 0.02_2 |
| FreeBSD:14:quarterly | 0.02_2 | 0.02_2 | n/a | 0.02_2 | 0.02_2 |
| FreeBSD:15:latest | 0.02_2 | 0.02_2 | n/a | 0.02_2 | 0.02_2 |
| FreeBSD:15:quarterly | 0.02_2 | 0.02_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.02_2 | 0.02_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
Required by 2
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
| File | Size | SHA256 |
|---|---|---|
| Test-TableDriven-0.02.tar.gz | 13735 | 425878afcf2a14e047caf891b1915e9f5ffb036941609c438e0dfbd1b5b1859a |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.