From owner-cvs-ports@FreeBSD.ORG Sat Jun 11 14:51:18 2011 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55499106566C; Sat, 11 Jun 2011 14:51:18 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 2C7FB8FC08; Sat, 11 Jun 2011 14:51:18 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p5BEpIUI032897; Sat, 11 Jun 2011 14:51:18 GMT (envelope-from sunpoet@repoman.freebsd.org) Received: (from sunpoet@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p5BEpIGj032896; Sat, 11 Jun 2011 14:51:18 GMT (envelope-from sunpoet) Message-Id: <201106111451.p5BEpIGj032896@repoman.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sat, 11 Jun 2011 14:51:18 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/devel Makefile ports/devel/p5-Test-TableDriven Makefile distinfo pkg-descr pkg-plist X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2011 14:51:18 -0000 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)