Andy Lester wrote:

Id like to propose that I (or someone like me) add a passthru option
which lets someone pass thru options and arguments to the test scripts being run.



Is this better than some kind of environment variable that you set, and that your test programs detect and use?

xoa



thats precisely what -v does currently, same convenience argument applies.

turning it around further, PROVE_SWITCHES_PASSTHRU could prepare passthru
args for everyone, using a single implementation - and thus saving lazy programmers
from inventing their own/different versions of same.


This doesnt preclude individual test writers from using $ENV{FOO_OPTS} if they want.

It also doesnt provide test scripts with standard arg-handling, save for 'getting them there'



More to the future, if prove supports  --passthru tag=val  now,
it makes it more likely that someone will do stuff like this later:

for $tmode (qw( regular supersize)) {
   `prove -p testmode=$tmode  testsuiteA/`;
}

for $mode ('', 'torture') {
   for $pkgs (@phalanx100) {
       `prove --passthru -$mode  $pkgs`;
   }
}





Reply via email to