cvs commit: ports/devel Makefile ports/devel/p5-Test-TableDriven
Makefile distinfo pkg-descr pkg-plist
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Jun 11 14:51:18 UTC 2011
sunpoet 2011-06-11 14:51:18 UTC
FreeBSD ports repository
Modified files:
devel Makefile
Added files:
devel/p5-Test-TableDriven Makefile distinfo pkg-descr
pkg-plist
Log:
- Add p5-Test-TableDriven 0.02
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.
WWW: http://search.cpan.org/dist/Test-TableDriven/
Revision Changes Path
1.4366 +1 -0 ports/devel/Makefile
1.1 +23 -0 ports/devel/p5-Test-TableDriven/Makefile (new)
1.1 +2 -0 ports/devel/p5-Test-TableDriven/distinfo (new)
1.1 +13 -0 ports/devel/p5-Test-TableDriven/pkg-descr (new)
1.1 +5 -0 ports/devel/p5-Test-TableDriven/pkg-plist (new)
More information about the cvs-all
mailing list