Date: Sat, 11 Jun 2011 14:51:18 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/devel Makefile ports/devel/p5-Test-TableDriven Makefile distinfo pkg-descr pkg-plist Message-ID: <201106111451.p5BEpIGj032896@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106111451.p5BEpIGj032896>
