Skip to content

Commit

Permalink
Add recipe for running a single test file
Browse files Browse the repository at this point in the history
  • Loading branch information
kenahoo committed Mar 21, 2005
1 parent d216131 commit a841cba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/Module/Build/Cookbook.pm
Expand Up @@ -107,6 +107,24 @@ To do this, specify the C<destdir> parameter to the C<install> action:
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
Expand Down

0 comments on commit a841cba

Please sign in to comment.