Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'd split up the different phases ( like
And after testing all small building steps you test some big one combining easier ones and so on. Of course you have to mock data, but with this approach you only need to simulate the simpler building cases that convince you. The trick is to add new tests as soon that you discover a bug caused by an edge case you forgot to cover. With this incremental approach the probability of bugs shrinks very fast in linear time.
UPDATEI think a good test suite combines the qualities of a spider web and a pyramid.
Cheers Rolf
In reply to Re: Writing tests when you don't know what the output should be
by LanX
|
|