<?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: The dark side of failing tests</title>
	<atom:link href="http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Wed, 10 Mar 2010 21:27:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-88414</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Tue, 13 May 2008 15:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-88414</guid>
		<description>@Hannibal Lecter: Yep, I was asked to not post tickets. But I think it was an overreaction ;-)</description>
		<content:encoded><![CDATA[<p>@Hannibal Lecter: Yep, I was asked to not post tickets. But I think it was an overreaction ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dr. Hannibal Lecter</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-88165</link>
		<dc:creator>dr. Hannibal Lecter</dc:creator>
		<pubDate>Mon, 12 May 2008 10:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-88165</guid>
		<description>Did I get this right? You were asked *not* to post tickets? That seems just silly, am I missing something? How is that helpful?</description>
		<content:encoded><![CDATA[<p>Did I get this right? You were asked *not* to post tickets? That seems just silly, am I missing something? How is that helpful?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-88045</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Sun, 11 May 2008 14:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-88045</guid>
		<description>@Tarique: Yes, in general you are right, that submitting patches teaches others how to fish. But what I tried to explain is an exception of this general case ;-)  

Let&#039;s say we have an application where all tests run fine. Now you make a change which breaks the tests, you commit it to the repository, and you go on to work on other stuff. Later, I run the tests and see that they fail. What should I do? Should I be the &quot;good&quot; guy and fix them myself and provide a patch for you? Or should I be the &quot;bad&quot; guy that simply says: &quot;Hey, you broke the tests, please fix them&quot;? The first approach teaches you it&#039;s ok to be lazy, there is someone else who cleans up, whereas the second approach hopefully teaches you to run the tests the next time before committing code ;-)

@nate: Well, maybe my test environment is not set up correctly. That&#039;s what I did to make the tests run: I changed the value of CAKE_CORE_INCLUDE_PATH in test.php (I&#039;m using an advanced installation) and defined the $test database connection. I don&#039;t know whether there are additional steps necessary. The fatal error I get is because I don&#039;t have the xdebug extension installed, see my ticket.

I agree with you, that I&#039;m not always an &quot;easy&quot; guy to work with. I&#039;m very analytical and critical, and not everyone can deal with that. In the past I even got fired because I gave my boss negative feedback ;-) And I&#039;m probably not always that diplomatic. 

Regarding &quot;... work [..] in a constructive way&quot;, I think we have different definitions of what that means. For example: I opened the tickets to encourage you to fix them (as I think it is bad to have failing tests) whereas from your point of view they were useless.

Anyway, thanks for your feedback!

@Jonathan: The respective tickets are tickets #4596-#4600. In those tickets I simply reported the failing tests, as I didn&#039;t knew whether the problems were in the test cases, in the tested classes, or in the new test suite shell.</description>
		<content:encoded><![CDATA[<p>@Tarique: Yes, in general you are right, that submitting patches teaches others how to fish. But what I tried to explain is an exception of this general case ;-)  </p>
<p>Let&#8217;s say we have an application where all tests run fine. Now you make a change which breaks the tests, you commit it to the repository, and you go on to work on other stuff. Later, I run the tests and see that they fail. What should I do? Should I be the &#8220;good&#8221; guy and fix them myself and provide a patch for you? Or should I be the &#8220;bad&#8221; guy that simply says: &#8220;Hey, you broke the tests, please fix them&#8221;? The first approach teaches you it&#8217;s ok to be lazy, there is someone else who cleans up, whereas the second approach hopefully teaches you to run the tests the next time before committing code ;-)</p>
<p>@nate: Well, maybe my test environment is not set up correctly. That&#8217;s what I did to make the tests run: I changed the value of CAKE_CORE_INCLUDE_PATH in test.php (I&#8217;m using an advanced installation) and defined the $test database connection. I don&#8217;t know whether there are additional steps necessary. The fatal error I get is because I don&#8217;t have the xdebug extension installed, see my ticket.</p>
<p>I agree with you, that I&#8217;m not always an &#8220;easy&#8221; guy to work with. I&#8217;m very analytical and critical, and not everyone can deal with that. In the past I even got fired because I gave my boss negative feedback ;-) And I&#8217;m probably not always that diplomatic. </p>
<p>Regarding &#8220;&#8230; work [..] in a constructive way&#8221;, I think we have different definitions of what that means. For example: I opened the tickets to encourage you to fix them (as I think it is bad to have failing tests) whereas from your point of view they were useless.</p>
<p>Anyway, thanks for your feedback!</p>
<p>@Jonathan: The respective tickets are tickets #4596-#4600. In those tickets I simply reported the failing tests, as I didn&#8217;t knew whether the problems were in the test cases, in the tested classes, or in the new test suite shell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Snook</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-87924</link>
		<dc:creator>Jonathan Snook</dc:creator>
		<pubDate>Sat, 10 May 2008 18:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-87924</guid>
		<description>While I&#039;m unaware of what tickets you files and why, I think you&#039;d want to be careful that you the tickets aren&#039;t about the failed tests themselves but rather about possible bugs that they uncover (which is the whole point of the tests, right?).</description>
		<content:encoded><![CDATA[<p>While I&#8217;m unaware of what tickets you files and why, I think you&#8217;d want to be careful that you the tickets aren&#8217;t about the failed tests themselves but rather about possible bugs that they uncover (which is the whole point of the tests, right?).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarique Sani</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-87896</link>
		<dc:creator>Tarique Sani</dc:creator>
		<pubDate>Sat, 10 May 2008 13:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-87896</guid>
		<description>@Daniel - this is an invitation from Nate :)</description>
		<content:encoded><![CDATA[<p>@Daniel &#8211; this is an invitation from Nate :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nate</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-87892</link>
		<dc:creator>nate</dc:creator>
		<pubDate>Sat, 10 May 2008 12:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-87892</guid>
		<description>Again you twist the issue to appear in your favor.  You should come to the US and run for president, you&#039;d make a great politician. ;-)

I just ran all the tests, and had others run them as well.  There are a very few failing tests, on code which is still in-development (as you say, it is part of the process).  There are no fatal errors.

Also, none of the tests that currently fail were mentioned in the tickets you opened, and none of the tickets you opened have any failing tests (when run from the web test interface).

This very debate illustrates the crux of my issue with you: you&#039;re an intelligent programmer, and we could always, always use more people like you to help improve the Cake core, but in my experience you&#039;re not able to work with other people in a constructive way.  Your main interest always seems to be in blaming others while doing everything possible to avoid blame yourself.

I hope that in the future you&#039;re able to prove me wrong.</description>
		<content:encoded><![CDATA[<p>Again you twist the issue to appear in your favor.  You should come to the US and run for president, you&#8217;d make a great politician. ;-)</p>
<p>I just ran all the tests, and had others run them as well.  There are a very few failing tests, on code which is still in-development (as you say, it is part of the process).  There are no fatal errors.</p>
<p>Also, none of the tests that currently fail were mentioned in the tickets you opened, and none of the tickets you opened have any failing tests (when run from the web test interface).</p>
<p>This very debate illustrates the crux of my issue with you: you&#8217;re an intelligent programmer, and we could always, always use more people like you to help improve the Cake core, but in my experience you&#8217;re not able to work with other people in a constructive way.  Your main interest always seems to be in blaming others while doing everything possible to avoid blame yourself.</p>
<p>I hope that in the future you&#8217;re able to prove me wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarique Sani</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-87889</link>
		<dc:creator>Tarique Sani</dc:creator>
		<pubDate>Sat, 10 May 2008 12:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-87889</guid>
		<description>Ummm.... Using &quot;mess&quot; and &quot;lazy&quot; is I would say a bit presumptuous. Not providing patches puts you as someone who &quot;wants to complain but not help&quot; 

IMO submitting patches is teaching precisely how to fish. Providing patches is the cornerstone of OSS development. If every bug in every OSS was left for the developer to fix we would not be here and so far out.

To paraphrase Linus &quot;Talk is cheap - Show me the code&quot; is universally true.</description>
		<content:encoded><![CDATA[<p>Ummm&#8230;. Using &#8220;mess&#8221; and &#8220;lazy&#8221; is I would say a bit presumptuous. Not providing patches puts you as someone who &#8220;wants to complain but not help&#8221; </p>
<p>IMO submitting patches is teaching precisely how to fish. Providing patches is the cornerstone of OSS development. If every bug in every OSS was left for the developer to fix we would not be here and so far out.</p>
<p>To paraphrase Linus &#8220;Talk is cheap &#8211; Show me the code&#8221; is universally true.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-87869</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Sat, 10 May 2008 07:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-87869</guid>
		<description>@all: Thanks for your comments!

@Mariano: No.

@Brendon: Sure, it is a point of view thing, and you can see it like you described. 

@nate: Well, I just set up the &quot;normal&quot; test environment and ran the tests, and the same tests fail again (plus some other tests), even the test suite fails with a fatal error ;-)

@Tarique: I think taking the stance &quot;the person who breaks it [the tests] fixes it&quot; is independent of whether I&#039;m a team member or not. Sure, I may be able to supply patches, but it is not satisfying to clean up the &quot;mess&quot; of others only because they are too lazy to do it themselves. Somehow it would be like giving them a fish instead of teaching them how to fish...</description>
		<content:encoded><![CDATA[<p>@all: Thanks for your comments!</p>
<p>@Mariano: No.</p>
<p>@Brendon: Sure, it is a point of view thing, and you can see it like you described. </p>
<p>@nate: Well, I just set up the &#8220;normal&#8221; test environment and ran the tests, and the same tests fail again (plus some other tests), even the test suite fails with a fatal error ;-)</p>
<p>@Tarique: I think taking the stance &#8220;the person who breaks it [the tests] fixes it&#8221; is independent of whether I&#8217;m a team member or not. Sure, I may be able to supply patches, but it is not satisfying to clean up the &#8220;mess&#8221; of others only because they are too lazy to do it themselves. Somehow it would be like giving them a fish instead of teaching them how to fish&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarique Sani</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-87859</link>
		<dc:creator>Tarique Sani</dc:creator>
		<pubDate>Sat, 10 May 2008 04:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-87859</guid>
		<description>@Nate well put - things are now in perspective.

@Daniel - when you are in the team taking a stance &quot;the person who breaks it fixes it&quot; is correct but from if you are in the community then not supplying patches when it is well known that you *can* will be considered &quot;whining&quot; 

@Mariano - That was as rhetorical question right? :P</description>
		<content:encoded><![CDATA[<p>@Nate well put &#8211; things are now in perspective.</p>
<p>@Daniel &#8211; when you are in the team taking a stance &#8220;the person who breaks it fixes it&#8221; is correct but from if you are in the community then not supplying patches when it is well known that you *can* will be considered &#8220;whining&#8221; </p>
<p>@Mariano &#8211; That was as rhetorical question right? :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nate</title>
		<link>http://cakebaker.42dh.com/2008/05/09/the-dark-side-of-failing-tests/comment-page-1/#comment-87803</link>
		<dc:creator>nate</dc:creator>
		<pubDate>Fri, 09 May 2008 19:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=601#comment-87803</guid>
		<description>Hi Daniel,

You make some excellent points about the cost of failing tests and the importance of testing across different environments.  However, you seem to be mischaracterizing the situation in this case.

The particular tests to which you&#039;re referring aren&#039;t actually broken, in fact, they all pass just fine.  However, those tests were written to run in the context of an HTTP request, and you&#039;re running them on the command line.  This isn&#039;t just a different &quot;environment,&quot; this is an entirely different context.

Because of this, and because of the fact that the new test suite shell command is as-yet-unreleased, &quot;fixing&quot; those tests (i.e. setting up the necessary environmental conditions to run them on the CLI) hasn&#039;t been a high priority, because as I mentioned, nothing is actually broken.

Therefore, your idea about the &quot;costs&quot; doesn&#039;t really apply, since the necessary environmental bootstrapping is a fixed cost, and will apply the same across the board to all affected tests.</description>
		<content:encoded><![CDATA[<p>Hi Daniel,</p>
<p>You make some excellent points about the cost of failing tests and the importance of testing across different environments.  However, you seem to be mischaracterizing the situation in this case.</p>
<p>The particular tests to which you&#8217;re referring aren&#8217;t actually broken, in fact, they all pass just fine.  However, those tests were written to run in the context of an HTTP request, and you&#8217;re running them on the command line.  This isn&#8217;t just a different &#8220;environment,&#8221; this is an entirely different context.</p>
<p>Because of this, and because of the fact that the new test suite shell command is as-yet-unreleased, &#8220;fixing&#8221; those tests (i.e. setting up the necessary environmental conditions to run them on the CLI) hasn&#8217;t been a high priority, because as I mentioned, nothing is actually broken.</p>
<p>Therefore, your idea about the &#8220;costs&#8221; doesn&#8217;t really apply, since the necessary environmental bootstrapping is a fixed cost, and will apply the same across the board to all affected tests.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
