in reply to Stupid, but fun, ideas in testing
That's nice if you're optimizing to minimize test runtime. However, I usually optimize to maximize test independence. I want each *.t file to run in its own interpreter from a known starting point.
That said, I do often look for ways to run similar tests in one main loop where the test data comes from a data structure within the .t file or from outside the .t file in some way.
How does Test::Class handle the independence issue? Load all the modules and then fork for each class?
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Stupid, but fun, ideas in testing
by Ovid (Cardinal) on Nov 24, 2007 at 16:27 UTC | |
by xdg (Monsignor) on Nov 24, 2007 at 23:15 UTC | |
by dws (Chancellor) on Nov 24, 2007 at 20:02 UTC | |
Re^2: Stupid, but fun, ideas in testing
by jasonk (Parson) on Nov 24, 2007 at 16:21 UTC |