On Tue, May 5, 2009 at 7:44 PM, Jonathan Swartz <[email protected]> wrote:
> One solution, I guess, is to use a fresh install of Perl that contains just
> the requirements for CHI. But I'd need one of these for each CPAN
> distribution I'm working on!
You only need one fresh perl. Set CPAN not to install build_requires.
cpan> o conf init /build_requires/
Then always "test" with that perl/CPAN and never "install" and each
run will start clean. (This is, in fact, more or less what
CPAN::Reporter::Smoker does)
As a nice bit of sugar, CPAN recognizes the "." argument as meaning
the current directory, so you can do this:
$ cleanperl -MCPAN -e 'test "."'
Hope that helps,
David