talexb has asked for the wisdom of the Perl Monks concerning the following question:
After many years of writing Perl I am finally starting to write tests for the modules that I've written, and this is presenting me with a bit of a challenge.
My first test file starts with .. shall we say .. a base object, from which all other objects flow. My plan is to be able to run this test right after an install to check that some bare bones functionality is present, and again after I've primed the system with a few test files.
Thus, the second test run will be more comprehensive. I believe I know how to do that, using Schwern's excellent Test::More and the SKIP: feature, but I'm concerned that I'm going to end up with a larger and larger test file. Should I, or can I, break out the other tests into separate files in an attempt to modularize? Or is there a cunning way to run groups of tests from a superior file?
I welcome your feedback.
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to structure tests that span several modules
by metaperl (Curate) on Feb 03, 2005 at 21:43 UTC | |
by talexb (Chancellor) on Feb 03, 2005 at 22:01 UTC | |
|
Re: How to structure tests that span several modules
by jplindstrom (Monsignor) on Feb 03, 2005 at 22:21 UTC | |
|
Re: How to structure tests that span several modules
by CountZero (Bishop) on Feb 03, 2005 at 22:27 UTC | |
|
Re: How to structure tests that span several modules
by dragonchild (Archbishop) on Feb 04, 2005 at 02:00 UTC | |
|
Re: How to structure tests that span several modules
by xdg (Monsignor) on Feb 04, 2005 at 13:15 UTC | |
|
Re: How to structure tests that span several modules
by halley (Prior) on Feb 04, 2005 at 16:37 UTC | |
|
Re: How to structure tests that span several modules
by bluto (Curate) on Feb 04, 2005 at 21:20 UTC |