carcassonne has asked for the wisdom of the Perl Monks concerning the following question:
I'm starting using a common approach to make tests, based on module-starter. And so I have t subdirectories such as:
t/10_Module1Test t/20_Module2Test t/30_Module3Test
Each subdirectory will contain numerical-prefixed series of .t files.
My questions are, these tests will be run against many configuration files. For each individual test to load a config file is rather silly. Is there a well-known approach of sharing resources between multiple tests ? And, how can several configuration files be used, with the same tests run for each config file ? The numbering scheme seems to point to sequential execution instead of loops.
Bonus question: I've read José's Guide (here on PerlMonks) although it does not elaborate on testing strategies. Are there references out there that explores various ways of constructing tests ?
Thanks and best wishes for 2010!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tests strategies: sharing of resources
by Old_Gray_Bear (Bishop) on Dec 29, 2009 at 16:36 UTC | |
|
Re: Tests strategies: sharing of resources
by ikegami (Patriarch) on Dec 29, 2009 at 18:33 UTC | |
by carcassonne (Pilgrim) on Dec 29, 2009 at 19:17 UTC | |
by ikegami (Patriarch) on Dec 29, 2009 at 22:28 UTC | |
|
Re: Tests strategies: sharing of resources
by Narveson (Chaplain) on Dec 29, 2009 at 16:56 UTC |