Do you know where your variables are? | |
PerlMonks |
Re: Test Case Generatorby sundialsvc4 (Abbot) |
on Oct 03, 2012 at 13:26 UTC ( [id://997055]=note: print w/replies, xml ) | Need Help?? |
As you can imagine, building a really good test-case requires thought, not automation. You usually need to work carefully with the developer, but in the role of “the devil’s advocate who came from Missouri.”
Perl has definitive test-suites such as Test::Most, which of course means that the tests are themselves programs ... so you can use loops and such in writing them. Every CPAN module includes its own test-case suite (generally, the file-names end with “.t”), which you IMHO, there are three or so things which a good test-suite should definitely cover:
The developer can’t be the tester. It takes a different mind-set, I think. People definitely trend either toward “writing it” or “blowing holes in it.” In any case, whether consciously or unconsciously, a developer’s own self-written tests (although she should be asked to provide some ...) won’t be complete and will tend to be too kind. The relationship between the two of you of course is not adversarial; you are working toward a single mutual goal, and if both of you do it well, that pager will remain silent all night long. (“Priceless™ ...”)
I think that the job of the tester/QA team is really the most important job in the world, because, as I said, only the computer itself can be the guardian of its own correctness. The hardest thing about any flaw is finding it. New flaws
In Section
Seekers of Perl Wisdom
|
|