laziness, impatience, and hubris | |
PerlMonks |
Re: A brief question about testing/best practicesby choroba (Cardinal) |
on Jan 20, 2015 at 16:53 UTC ( [id://1113899]=note: print w/replies, xml ) | Need Help?? |
If you want to have 100% testable code, you have to change your coding habits. It means your main program basically becomes
As an intermediate step, you can also test existing programs by calling them via an IPC method and examining the output or exit status.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|