<?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: iPhone SDK: UIViewController Testing &amp; TDD</title>
	<atom:link href="http://pathfindersoftware.com/2008/11/iphone-view-testing-td/feed/" rel="self" type="application/rss+xml" />
	<link>http://pathfindersoftware.com/2008/11/iphone-view-testing-td/</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: Adoption Curve &#187; Blog Archive &#187; links for 2011-09-07</title>
		<link>http://pathfindersoftware.com/2008/11/iphone-view-testing-td/#comment-10854</link>
		<dc:creator>Adoption Curve &#187; Blog Archive &#187; links for 2011-09-07</dc:creator>
		<pubDate>Wed, 07 Sep 2011 07:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1276#comment-10854</guid>
		<description>[...] iPhone SDK: UIViewController Testing &amp; TDD &#124; Pathfinder Software Unfortunately there are not enough examples out there on how to test view controllers with the iPhone SDK. My hope is to remedy that a bit by sharing some techniques I have been using to tackle the problem, particularly in keeping with the spirit of TDD along the way. (tags: uiviewcontroller ios testing tdd bdd viewcontroller viewcontrollers ghunit ocmock) [...]</description>
		<content:encoded><![CDATA[<p>[...] iPhone SDK: UIViewController Testing &amp; TDD | Pathfinder Software Unfortunately there are not enough examples out there on how to test view controllers with the iPhone SDK. My hope is to remedy that a bit by sharing some techniques I have been using to tackle the problem, particularly in keeping with the spirit of TDD along the way. (tags: uiviewcontroller ios testing tdd bdd viewcontroller viewcontrollers ghunit ocmock) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Moscoso</title>
		<link>http://pathfindersoftware.com/2008/11/iphone-view-testing-td/#comment-9014</link>
		<dc:creator>Ivan Moscoso</dc:creator>
		<pubDate>Fri, 06 Mar 2009 05:44:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1276#comment-9014</guid>
		<description>@Jeffrey:  Thanks for your comment.  As for the exit code issue, this seems to be by design.  I have heard of people working around it by modifying &quot;RunIPhoneUnitTest.sh&quot;.

Take a look at http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=13 for one idea (note: that script doesn&#039;t work with the latest GTM builds-- it needs some tweaking).  I have made similar modifications to that script in the past, but scrapped it.  If I had to do it again, I would just as well rewrite that script in Ruby, and have it take arguments, so as to alter the output of test results.

Come to think of it, that sounds like a great idea.</description>
		<content:encoded><![CDATA[<p>@Jeffrey:  Thanks for your comment.  As for the exit code issue, this seems to be by design.  I have heard of people working around it by modifying &#8220;RunIPhoneUnitTest.sh&#8221;.</p>
<p>Take a look at <a href="http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=13" rel="nofollow">http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=13</a> for one idea (note: that script doesn&#8217;t work with the latest GTM builds&#8211; it needs some tweaking).  I have made similar modifications to that script in the past, but scrapped it.  If I had to do it again, I would just as well rewrite that script in Ruby, and have it take arguments, so as to alter the output of test results.</p>
<p>Come to think of it, that sounds like a great idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Fredrick</title>
		<link>http://pathfindersoftware.com/2008/11/iphone-view-testing-td/#comment-9013</link>
		<dc:creator>Jeffrey Fredrick</dc:creator>
		<pubDate>Fri, 06 Mar 2009 00:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1276#comment-9013</guid>
		<description>Ivan, I appreciate your examples of unit testing. One problem I have with GTM for iPhone unit testing is that the exit code is always zero: a failed test doesn&#039;t fail the build.

Am I missing something simple?

I&#039;m tempted to work around this in the xcodebuilder for CruiseControl but parsing the output for failures but that is not my first choice.</description>
		<content:encoded><![CDATA[<p>Ivan, I appreciate your examples of unit testing. One problem I have with GTM for iPhone unit testing is that the exit code is always zero: a failed test doesn&#8217;t fail the build.</p>
<p>Am I missing something simple?</p>
<p>I&#8217;m tempted to work around this in the xcodebuilder for CruiseControl but parsing the output for failures but that is not my first choice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Moscoso</title>
		<link>http://pathfindersoftware.com/2008/11/iphone-view-testing-td/#comment-9012</link>
		<dc:creator>Ivan Moscoso</dc:creator>
		<pubDate>Mon, 22 Dec 2008 17:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1276#comment-9012</guid>
		<description>@mml: Thanks for the question.  I seemed to have left out that important part-- from your unit test, invoke &#039;loadView&#039; on your controller immediately after &#039;initWithNibName:bundle:&#039;.

&#039;loadView&#039; is something you would probably never have to call from your production code (my guess is that it is invoked for you), but it initializes the view hierarchy from the nib.  It&#039;s necessary to really bring all of this under test.</description>
		<content:encoded><![CDATA[<p>@mml: Thanks for the question.  I seemed to have left out that important part&#8211; from your unit test, invoke &#8216;loadView&#8217; on your controller immediately after &#8216;initWithNibName:bundle:&#8217;.</p>
<p>&#8216;loadView&#8217; is something you would probably never have to call from your production code (my guess is that it is invoked for you), but it initializes the view hierarchy from the nib.  It&#8217;s necessary to really bring all of this under test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mml</title>
		<link>http://pathfindersoftware.com/2008/11/iphone-view-testing-td/#comment-9011</link>
		<dc:creator>mml</dc:creator>
		<pubDate>Mon, 22 Dec 2008 16:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1276#comment-9011</guid>
		<description>Hi,

How were you instantiating your test UIViewController?

vanilla alloc.init seems to not instantiate any subviews in my test code, initwithnibname doesn&#039;t even instantiate the main view.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>How were you instantiating your test UIViewController?</p>
<p>vanilla alloc.init seems to not instantiate any subviews in my test code, initwithnibname doesn&#8217;t even instantiate the main view.</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:47:27 -->
