* Chris Dolan <[EMAIL PROTECTED]> [2006-10-03 19:35]: > So, I hereby propose new .t boilerplate: > > use Test::More; > if (!$ENV{AUTHOR_TEST} && !$ENV{AUTHOR_TEST_<CPANID>}) { > plan skip_all => 'Author test'; > } > plan ...; > > where <CPANID> is either the maintainer's PAUSE username or, > for large projects, some unique package/family identifier.
If it’s worth boilerplating, it’s worth abstracting. How about use Test::More::ForAuthor [ 'ARISTOTLE' ], plan => 42; which loads and imports Test::More, then does the exact equivalent of the boilerplate you showed? Of course ideally it would be use Test::More plan => 42, for_author => [ 'ARISTOTLE' ]; but that has the typical upgrade issues. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>