<?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: Help, My Test Is Failing!</title>
	<atom:link href="http://pathfindersoftware.com/2009/07/help-my-test-i-failing/feed/" rel="self" type="application/rss+xml" />
	<link>http://pathfindersoftware.com/2009/07/help-my-test-i-failing/</link>
	<description>The Fastest Way to Launch Successful Software</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:36:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: oelmekki</title>
		<link>http://pathfindersoftware.com/2009/07/help-my-test-i-failing/#comment-9710</link>
		<dc:creator>oelmekki</dc:creator>
		<pubDate>Sat, 01 Aug 2009 07:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=3399#comment-9710</guid>
		<description>@David Hainlin:

It&#039;s also avoidable when running autotest/autospec. You even don&#039;t have to commit, just to save a file and see your tests crash.

--

&quot;tests failing and app working&quot; is something that regularly happens to me. Each time, i think &quot;oh no, please tests, you&#039;re supposed to save my time&quot;.

I think the biggest problem is the discordance of environments. It&#039;s especially true when doing integration testing with cucumber/webrat. We don&#039;t actually test our app, we test our test-app, which can have a really different environment from the production one.

I have thought about this several times, without finding a perfect solution. Maybe something like using git to branch the app in a test branch, and duplicating dev db in test db without using fixtures or mocks for integration tests, testing more the value change between actions than the value itself...</description>
		<content:encoded><![CDATA[<p>@David Hainlin:</p>
<p>It&#8217;s also avoidable when running autotest/autospec. You even don&#8217;t have to commit, just to save a file and see your tests crash.</p>
<p>&#8211;</p>
<p>&#8220;tests failing and app working&#8221; is something that regularly happens to me. Each time, i think &#8220;oh no, please tests, you&#8217;re supposed to save my time&#8221;.</p>
<p>I think the biggest problem is the discordance of environments. It&#8217;s especially true when doing integration testing with cucumber/webrat. We don&#8217;t actually test our app, we test our test-app, which can have a really different environment from the production one.</p>
<p>I have thought about this several times, without finding a perfect solution. Maybe something like using git to branch the app in a test branch, and duplicating dev db in test db without using fixtures or mocks for integration tests, testing more the value change between actions than the value itself&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Hainlin</title>
		<link>http://pathfindersoftware.com/2009/07/help-my-test-i-failing/#comment-9709</link>
		<dc:creator>David Hainlin</dc:creator>
		<pubDate>Fri, 31 Jul 2009 18:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=3399#comment-9709</guid>
		<description>Nice post. This scenario is rarely encountered when using continuous integration - the offending commit is caught within seconds so you still have some fresh context.  Running cruisecontrol for rails and java projects has all but remove this issue.

On projects where there isn&#039;t a little robot friend checking all the commits, a tool like fisheye is fantastic for walking history and looking at the diffs.  I used this quite a bit on a highly distributed team while cruise was down (being moved).</description>
		<content:encoded><![CDATA[<p>Nice post. This scenario is rarely encountered when using continuous integration &#8211; the offending commit is caught within seconds so you still have some fresh context.  Running cruisecontrol for rails and java projects has all but remove this issue.</p>
<p>On projects where there isn&#8217;t a little robot friend checking all the commits, a tool like fisheye is fantastic for walking history and looking at the diffs.  I used this quite a bit on a highly distributed team while cruise was down (being moved).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Bates</title>
		<link>http://pathfindersoftware.com/2009/07/help-my-test-i-failing/#comment-9708</link>
		<dc:creator>Ryan Bates</dc:creator>
		<pubDate>Fri, 31 Jul 2009 17:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=3399#comment-9708</guid>
		<description>If a test is sometimes failing and other times passing depending on how it&#039;s run, it&#039;s likely due to some state left over from a previous test.

To help debug this, try running your tests in reverse order. With rspec you can use the &quot;-R&quot; option.

As a rule of thumb, every test should start with the same clean environment. Ensure the setup/teardown hooks are removing any changes leftover from a previous test.</description>
		<content:encoded><![CDATA[<p>If a test is sometimes failing and other times passing depending on how it&#8217;s run, it&#8217;s likely due to some state left over from a previous test.</p>
<p>To help debug this, try running your tests in reverse order. With rspec you can use the &#8220;-R&#8221; option.</p>
<p>As a rule of thumb, every test should start with the same clean environment. Ensure the setup/teardown hooks are removing any changes leftover from a previous test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan DeLeo</title>
		<link>http://pathfindersoftware.com/2009/07/help-my-test-i-failing/#comment-9707</link>
		<dc:creator>Dan DeLeo</dc:creator>
		<pubDate>Fri, 31 Jul 2009 17:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=3399#comment-9707</guid>
		<description>Wow, this brought back some bad memories from last night. On my Moqueue project (mock objects for the amqp library, it&#039;s a bear to test otherwise) I&#039;m using the examples from the amqp library as integration/acceptance tests. One of these has a Logger class that demonstrates fanout queues, and it suddenly started failing, which confused the (perl code here) out of me. The culprit was wycats/bundler which was pulling &quot;logger&quot; in from stdlib when rubygems got required.

The moral: be very thorough when thinking about what&#039;s changed since the test passed.</description>
		<content:encoded><![CDATA[<p>Wow, this brought back some bad memories from last night. On my Moqueue project (mock objects for the amqp library, it&#8217;s a bear to test otherwise) I&#8217;m using the examples from the amqp library as integration/acceptance tests. One of these has a Logger class that demonstrates fanout queues, and it suddenly started failing, which confused the (perl code here) out of me. The culprit was wycats/bundler which was pulling &#8220;logger&#8221; in from stdlib when rubygems got required.</p>
<p>The moral: be very thorough when thinking about what&#8217;s changed since the test passed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (User agent is rejected)
Page Caching using memcached (User agent is rejected)

Served from: pathfindersoftware.com @ 2012-02-10 00:45:09 -->
