http://qs321.pair.com?node_id=1113899


in reply to A brief question about testing/best practices

If you want to have 100% testable code, you have to change your coding habits. It means your main program basically becomes
use ModuleA; use ModuleB; use Runner; Runner::run(@ARGV);

As an intermediate step, you can also test existing programs by calling them via an IPC method and examining the output or exit status.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ