<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Run test code often</title>
	<atom:link href="http://www.codewrecks.com/blog/index.php/2008/07/11/run-test-code-often/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codewrecks.com/blog/index.php/2008/07/11/run-test-code-often/</link>
	<description>Wrecks of code floating in the sea of Internet By Ricci Gian Maria</description>
	<lastBuildDate>Thu, 09 Feb 2012 16:15:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: alkampfer</title>
		<link>http://www.codewrecks.com/blog/index.php/2008/07/11/run-test-code-often/comment-page-1/#comment-1606</link>
		<dc:creator>alkampfer</dc:creator>
		<pubDate>Sat, 12 Jul 2008 11:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2008/07/11/run-test-code-often/#comment-1606</guid>
		<description>You described the TDD way to build a software, you also pointed out a very good practice, commit often.   :) . The bad thing is that seems difficult to bring this way of writing software to project manager... I often heard the horrible 

&quot;We are short of time, we cannot waste time on test&quot;

Writing no test is surely not a way to speed up the project, absolutely!! :D

alk.</description>
		<content:encoded><![CDATA[<p>You described the TDD way to build a software, you also pointed out a very good practice, commit often.   <img src='http://www.codewrecks.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . The bad thing is that seems difficult to bring this way of writing software to project manager&#8230; I often heard the horrible </p>
<p>&#8220;We are short of time, we cannot waste time on test&#8221;</p>
<p>Writing no test is surely not a way to speed up the project, absolutely!! <img src='http://www.codewrecks.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>alk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Gray</title>
		<link>http://www.codewrecks.com/blog/index.php/2008/07/11/run-test-code-often/comment-page-1/#comment-1604</link>
		<dc:creator>Jeremy Gray</dc:creator>
		<pubDate>Fri, 11 Jul 2008 21:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2008/07/11/run-test-code-often/#comment-1604</guid>
		<description>Ouch. Typo city.

&quot;When I first tried to force myself to religiously do the following&quot;... it often felt weird and was difficult to get used to ...&quot;, but now if I skip a step it makes me terribly uncomfortable&quot;

&quot;4. Write the test or tests&quot; ... &quot;that will&quot; _cover_ &quot;the code I am about to add (or change).

&quot;7. Run all tests, making sure the step 6 test _now_ passes.&quot;

&quot;1_3_. svn commit.&quot; (how can you tell I inserted the final svn up, rebuild, run all tests set before the final commit ;)

How can you tell that it&#039;s Friday and it is time for me to go home from work and rest up after a crazy week. :)</description>
		<content:encoded><![CDATA[<p>Ouch. Typo city.</p>
<p>&#8220;When I first tried to force myself to religiously do the following&#8221;&#8230; it often felt weird and was difficult to get used to &#8230;&#8221;, but now if I skip a step it makes me terribly uncomfortable&#8221;</p>
<p>&#8220;4. Write the test or tests&#8221; &#8230; &#8220;that will&#8221; _cover_ &#8220;the code I am about to add (or change).</p>
<p>&#8220;7. Run all tests, making sure the step 6 test _now_ passes.&#8221;</p>
<p>&#8220;1_3_. svn commit.&#8221; (how can you tell I inserted the final svn up, rebuild, run all tests set before the final commit <img src='http://www.codewrecks.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>How can you tell that it&#8217;s Friday and it is time for me to go home from work and rest up after a crazy week. <img src='http://www.codewrecks.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Gray</title>
		<link>http://www.codewrecks.com/blog/index.php/2008/07/11/run-test-code-often/comment-page-1/#comment-1603</link>
		<dc:creator>Jeremy Gray</dc:creator>
		<pubDate>Fri, 11 Jul 2008 21:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2008/07/11/run-test-code-often/#comment-1603</guid>
		<description>When I first tried to force myself to religiously do the following, but now if I skip a step it makes me terribly uncomfortable (except in certain very specific situations where it is best to do so.):

1. svn up.
2. rebuild.
3. Run all tests, making sure they pass.
4. Write a new test or tests (or modify an existing one or ones) that will code the code I am about to add (or change).
5. Run all tests, making sure the step 4 tests fail.
6. Write the code to cover one of the failing tests.
7. Run all tests, making sure the step 6 test no passes.
8. Repeat 6 and 7 until their tests all pass.
9. Optionally go back to step 1.
10. svn up.
11. rebuild.
12. Run all tests, making sure they pass.
10. svn commit.

If there is any part of that list that people fail to execute because they fail to understand it, it is around steps 4 and 5. It is critical that the tests be written and/or changed BEFORE code is changed, and that they fail. It is only by starting off with them failing that you can know for certain that your changes are what made them pass, as opposed to writing tests that pass and just going on faith that they actually cover your changes.

The only time I now change steps 4 and 5 is on the infrequent occasion that I am removing known-dead but still-tested code. Every other time, I update the tests first, make them fail, and then code to make them pass.</description>
		<content:encoded><![CDATA[<p>When I first tried to force myself to religiously do the following, but now if I skip a step it makes me terribly uncomfortable (except in certain very specific situations where it is best to do so.):</p>
<p>1. svn up.<br />
2. rebuild.<br />
3. Run all tests, making sure they pass.<br />
4. Write a new test or tests (or modify an existing one or ones) that will code the code I am about to add (or change).<br />
5. Run all tests, making sure the step 4 tests fail.<br />
6. Write the code to cover one of the failing tests.<br />
7. Run all tests, making sure the step 6 test no passes.<br />
8. Repeat 6 and 7 until their tests all pass.<br />
9. Optionally go back to step 1.<br />
10. svn up.<br />
11. rebuild.<br />
12. Run all tests, making sure they pass.<br />
10. svn commit.</p>
<p>If there is any part of that list that people fail to execute because they fail to understand it, it is around steps 4 and 5. It is critical that the tests be written and/or changed BEFORE code is changed, and that they fail. It is only by starting off with them failing that you can know for certain that your changes are what made them pass, as opposed to writing tests that pass and just going on faith that they actually cover your changes.</p>
<p>The only time I now change steps 4 and 5 is on the infrequent occasion that I am removing known-dead but still-tested code. Every other time, I update the tests first, make them fail, and then code to make them pass.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

