Your Mother has asked for the wisdom of the Perl Monks concerning the following question:
I have some legacy tests being run with a homegrown test-runner which is calling do t/test.t on each. It works all right as set-up but I want to add some new tests which require development library paths and I'd like to have that code in the test-runner once instead of the tests dozens of times.
Anything that would work -- within the current setup; I don't think I could use App::Prove for example -- would be appreciated greatly, even if messy/hacky (the only solution I can see after messing with it is to slurp the test, prepend some "use lib" stuff and then eval it). Getting more tests going is important and the runner will probably be jettisoned some day while the tests ought to be mostly salvageable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Include perl lib or ENV in a do file.pl?
by chromatic (Archbishop) on Mar 30, 2009 at 21:43 UTC | |
by Your Mother (Archbishop) on Mar 30, 2009 at 21:48 UTC |