Subject: | Cookbook patch - testing single files |
Hi Ken,
It took me a few minutes to figure out how to run a single test from my library this evening. To save me the extra legwork in the future, I've added an item to the Cookbook. A patch is attached.
Thanks,
William
--- /tmp/Cookbook.pm.orig 2005-03-13 22:31:01.000000000 -0500
+++ /tmp/Cookbook.pm 2005-03-13 22:33:28.000000000 -0500
@@ -107,6 +107,16 @@
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. Use the following format:
+
+ ./Build test test_files=t/001_load.t
+
+In addition, you may want to run the test in verbose mode to get more informative output:
+
+ ./Build test test_files=t/001_load.t verbose=1
+
=head1 ADVANCED RECIPES