Following in the footsteps of the recent discussion on extending no_plan to cover the case of us making sure the script actually finished 'normally', it occurred to me that another thing that might be useful is a means to have Test::Harness(? - I could be wrong) update the plan in the scripts it just ran. I envision something like $HARNESS_PLAN=update_plan make test # in each script run, replaces no_plan with actual number of tests run, or updates a plan number with the new actual number $HARNESS_PLAN=no_plan make test # reset all plans to no_plan I'd also think that there'd need to be a finer grained way to control this , so I think something like this might help # never let T::H update this - it is right and any other answer is wrong use Test::More tests => 42; # NO_UPDATE or # still under active development, plan in constant flux use Test::More qw(no_plan); # NO_UPDATE How the text replacement would happen, I dont know - I guess we'd want to script 'perl -i -pe "s/qw\(no_plan\);/tests => $num_run;/' /path/to/script/just/run.pl' I'm just making the proposal, note getting down to details. Another idea is to have T::H do a dry run of finding scripts to run, to aid those who' like to try to develope a test-dashboard app, and who need to know how many scripts are going to run. Something like $HARNESS_SCRIPTS=count_scripts make test This could have T::H set an envvar like HARNESS_SCRIPTS_FOUND, or somehow communicate back its findings.
Leif Eriksen Research and Development Engineer HPA Direct: +61 3 9217 5545 www.hpa.com.au <file://C:\Documents and Settings\le6303\Application Data\Microsoft\Signatures\Default.htm> -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.7/411 - Release Date: 7/08/2006 ********************************************************************** IMPORTANT The contents of this e-mail and its attachments are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you received this e-mail in error, please notify the HPA Postmaster, [EMAIL PROTECTED], then delete the e-mail. This footnote also confirms that this e-mail message has been swept for the presence of computer viruses by Ironport. Before opening or using any attachments, check them for viruses and defects. Our liability is limited to resupplying any affected attachments. HPA collects personal information to provide and market our services. For more information about use, disclosure and access see our Privacy Policy at www.hpa.com.au **********************************************************************