<?xml version="1.0" encoding="windows-1252"?>
<node id="982630" title="Re^6: Universal test flag" created="2012-07-19 09:29:51" updated="2012-07-19 09:29:51">
<type id="11">
note</type>
<author id="715263">
zwon</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;em&gt;to actually be able to refactor you must first have a solid set of tests&lt;/em&gt;&lt;/blockquote&gt;
&lt;p&gt;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.
&lt;p&gt;So what I would do, is to write &lt;b&gt;solid&lt;/b&gt; test, and refactor code to pass it.</field>
<field name="root_node">
982132</field>
<field name="parent_node">
982619</field>
</data>
</node>
