<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ben McGraw's Egometry &#187; simpletest</title>
	<atom:link href="http://www.egometry.com/tags/simpletest/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.egometry.com</link>
	<description>cogito ergo stfu</description>
	<lastBuildDate>Wed, 28 Jul 2010 20:12:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Simpletest, Simple Lessons</title>
		<link>http://www.egometry.com/tech/simpletest-simple-lessons/</link>
		<comments>http://www.egometry.com/tech/simpletest-simple-lessons/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 09:26:32 +0000</pubDate>
		<dc:creator>mcgrue</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[simpletest]]></category>
		<category><![CDATA[tdd]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.egometry.com/?p=248</guid>
		<description><![CDATA[Learn these lessons, fair reader, so that you may not stub thy code-toe upon SimpleTest! ]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://imvu.com/" target=_blank>IMVU</a>, we use a suite of testrunners and enhancements that sit on top of a core of <a href="http://simpletest.org/" target=_blank>Simpletest</a>.  It&#8217;s a pretty sweet suite, filled with all sorts of fancy doodads, gewgaws, and the most lovely selenium fixture you ever did see.  Convenience pours out of it&#8217;s every pore, as put there by scores of engineers over literally pairs of years.</p>
<p>However, we haven&#8217;t spent the time yet to pretty the ol&#8217; girl up for public consumption (which we <i>totally</i> should), so I decided to just use the basic core of SimpleTest while developing (as a personal project) the third iteration of the <a href="http://beta.verge-rpg.com" target=_blank>verge 2d game engine&#8217;s website</a> (wip).  </p>
<p>I didn&#8217;t know what I got myself into.  </p>
<p>Here&#8217;s some hard-earned knowledge I wrestled from the core of this beasty.  These simple statements represent hours of shouting, grunting, and crying defiantly into the rain-filled sky daring a cruel god to strike me down.</p>
<h2>SimpleTest Lessons</h2>
<p><span style="font-size: 250%">1.</span> <span style="font-family: monospace;">assertFieldById()</span> and <span style="font-family: monospace;">assertFieldByName()</span> do not work on html input elements which are improperly placed outside of <span style="font-family: monospace;">&lt;form&gt;</span> tags.</p>
<p><span style="font-size: 250%">2.</span> There do not appear to be out-of-the-box accessors for field values.  I had to code up my own <span style="font-family: monospace;">getFieldById()</span>.</p>
<p><span style="font-size: 250%">3.</span> If an element has an id, but not a name, it&#8217;s value will be inaccessible.</p>
<p><i style="color: silver;">This list is not exhaustive</i></p>
<p>Learn these lessons, fair reader, so that you may not stub thy code-toe upon SimpleTest!  And one day maybe we&#8217;ll get around to releasing IMVU&#8217;s Sweet Suite of Not-So-Simpletest.  </p>
<div style="font-size: 80%; color: silver;">Apologies for a lack of bloodposting for the past few days.  I was deathly ill and moving to San Francisco with <a href="http://timothyfitz.wordpress.com/" target=_blank>some guy</a> all at once.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.egometry.com/tech/simpletest-simple-lessons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>merry xmas, from website beta prime&#8230;</title>
		<link>http://www.egometry.com/gruedorf/merry-xmas-from-website-beta-prime/</link>
		<comments>http://www.egometry.com/gruedorf/merry-xmas-from-website-beta-prime/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 01:28:24 +0000</pubDate>
		<dc:creator>mcgrue</dc:creator>
				<category><![CDATA[Gruedorf]]></category>
		<category><![CDATA[simpletest]]></category>
		<category><![CDATA[verge-rpg]]></category>

		<guid isPermaLink="false">http://www.egometry.com/?p=269</guid>
		<description><![CDATA[This last week has been light on the gruedorfing and more heavy on the drinking.  Oh, when will I learn? Several hours of work, however, were invested into investigating why I couldn&#8217;t get variables from simpletest by id.  To make a long story short, form element values in simpletest won&#8217;t be accessible if the element [...]]]></description>
			<content:encoded><![CDATA[<p>This last week has been light on the gruedorfing and more heavy on the drinking.  Oh, when will I learn?</p>
<p>Several hours of work, however, were invested into investigating why I couldn&#8217;t get variables from simpletest by id.  To make a long story short, form element values in simpletest won&#8217;t be accessible if the element you want is in a malformed &lt;form&gt;.  In this case, there was no form tag at all, and so I was SOL until I tried actually making my html valid.</p>
<p>Feh.  <em>Valid</em> HTML.</p>
<p>Anyways, now the insidious bastard that was test_admins_can_edit_anything() passes.  Revisions 161 and 162 of the beta vrpg codebase happened this week.  I believe this is the last of my major infrastructure blocks, now, so the rest of the forums tests should go much quicker next time I sit down and tackle fleshing out the functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.egometry.com/gruedorf/merry-xmas-from-website-beta-prime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
