Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^6: Universal test flagby zwon (Abbot) |
on Jul 19, 2012 at 13:29 UTC ( [id://982630]=note: print w/replies, xml ) | Need Help?? |
to actually be able to refactor you must first have a solid set of tests And the exact problem with what you are trying to do is that it isn't solid. Suppose later you extract SMS sending code into a separate module, will your tests help you to find if you broke anything? No, because the code that may be broken by the change is being skipped in the test mode. So what I would do, is to write solid test, and refactor code to pass it.
In Section
Seekers of Perl Wisdom
|
|