[Module-build-checkins] Module-Build/lib/Module/Build Cookbook.pm,1.9,1.9.2.1
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <kwi...@us...> - 2005-03-21 17:33:52
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8294/lib/Module/Build Modified Files: Tag: release-0_26_branch Cookbook.pm Log Message: Add recipe for running a single test file Index: Cookbook.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Cookbook.pm,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -u -d -r1.9 -r1.9.2.1 --- Cookbook.pm 9 Oct 2004 16:27:59 -0000 1.9 +++ Cookbook.pm 21 Mar 2005 17:33:40 -0000 1.9.2.1 @@ -107,6 +107,24 @@ Build install destdir=/tmp/my-package-1.003 +=head2 Running a single test file + +C<Module::Builde> supports running a single test, which enables you to +track down errors more quickly. Use the following format: + + ./Build test --test_files t/mytest.t + +In addition, you may want to run the test in verbose mode to get more +informative output: + + ./Build test --test_files t/mytest.t --verbose 1 + +I run this so frequently that I actually define the following shell alias: + + alias t './Build test --verbose 1 --test_files' + +So then I can just execute C<t t/mytest.t> to run a single test. + =head1 ADVANCED RECIPES |