Yes, it's common to put common test code in a separate file. Usually a simple require "t/common_code.pl"; does the trick, though. Many modules in CPAN do that.
In reply to Re: Eliminating duplicated code in multiple test scripts using Test::More
by rjt
in thread Eliminating duplicated code in multiple test scripts using Test::More
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |