The size of your test plan is really a function of the size of your project, and the level of complexity. I'll offer my own experiences in writing tests while working on Krang a while back.
Krang is a large system, written almost entirely in object-oriented perl. Each Krang::* package we wrote has a corresponding test file, responsible for testing all aspects of that package's interface, ensuring that we have a basis for making sure future revisions don't break existing functionality. At least, that's the boilerplate text.
In reality, fully testing packages is HARD. Especially higher-level ones, which depend greatly on lower level packages. By the point you start testing higher-level functionality, you've got a very complex system, and shining a light into every last corner to confirm that things are ok is a lot of work.
What I took away from the project is this - the more time you put into testing your lower-level modules, the more payoff you get in the end. These packages are generally easier to test comprehensively, and it simplifies your higher-level tests - you can work from the basis of knowing your underlying structure is stable.
So what to test? Simple. Every time I create a new package, I do the following:
Some of you will recognize this as being right out of Kent Beck's book on Test Driven Development, and you're right. It's worked quite well for me in several areas:
As a side note - in addition to Test::Harness and Test::More, check out Test::MockObject - I've had some great luck with it, and I think it's going to be how I solve to always-painful problem of testing CGI applications in the future.
In reply to Re: What is a testing plan?
by swngnmonk
in thread What is a testing plan?
by hesco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |