If you have dependencies which are required only by the tests then it is important to flag them as such. If you use ExtUtils::MakeMaker then TEST_REQUIRES is the key. This has the following benefits:
FWIW, I agree with Corion and haukex that option 1 is likely to be the best path.
In reply to Re: code duplicate in tests -- code or custom module only needed to test
by hippo
in thread code duplicate in tests -- code or custom module only needed to test
by Discipulus
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |