<?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>Over It. &#187; Python</title>
	<atom:link href="http://jason.diamond.name/weblog/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://jason.diamond.name/weblog</link>
	<description>(a Weblog by Jason Diamond)</description>
	<lastBuildDate>Mon, 30 Jan 2012 20:08:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Autotest for Python</title>
		<link>http://jason.diamond.name/weblog/2010/06/18/autotest-for-python/</link>
		<comments>http://jason.diamond.name/weblog/2010/06/18/autotest-for-python/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 19:11:51 +0000</pubDate>
		<dc:creator>Jason Diamond</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://jason.diamond.name/weblog/?p=104</guid>
		<description><![CDATA[I recently went looking for an autotest equivalent for Python. This question on StackOverflow pointed me to autonose. It wasn&#8217;t that easy to install using easy_install since one of its dependencies (snakefood) failed to install so I had to do that manually. Unfortunately, autonose has a few issues, especially when running on Windows. Since it [...]]]></description>
			<content:encoded><![CDATA[<p>I recently went looking for an autotest equivalent for Python.</p>
<p>This <a href="http://stackoverflow.com/questions/108892/is-there-something-like-autotest-for-python-unittests">question</a> on StackOverflow pointed me to <a href="http://github.com/gfxmonk/autonose/">autonose</a>. It wasn&#8217;t that easy to install using easy_install since one of its dependencies (snakefood) failed to install so I had to do that manually.</p>
<p>Unfortunately, autonose has a few issues, especially when running on Windows. Since it doesn&#8217;t appear to be updated anymore, I went searching for an alternative and found pyautotest, part of the <a href="http://www.metareal.org/p/modipyd/">Modipyd</a> project. It doesn&#8217;t use <a href="http://somethingaboutorange.com/mrl/projects/nose/">nose</a>, but that&#8217;s OK, because I wasn&#8217;t using anything that required it.</p>
<p>I had to install Modipyd by downloading its source from this <a href="http://github.com/ishikawa/modipyd">GitHub repository</a> and running <code>python setup.py install</code>.</p>
<p>Pyautotest is exactly what I was looking for&#8211;simple and works right out of the box without a nest of dependencies. The only part I was missing was support for <a href="http://www.growlforwindows.com/">Growl for Windows</a>.</p>
<p><a href="http://www.ianlewis.org/en/modipyd-growl-test-driven-development">Ian Lewis</a> and his co-workers released some <a href="http://bitbucket.org/ae35/growltestrunner/">custom test runners</a> that can be used via pyautotest. The Growl version uses the <a href="http://growl.info/documentation/growlnotify.php">growlnotify</a> tool, but that didn&#8217;t work with the version of <a href="http://www.growlforwindows.com/gfw/help/growlnotify.aspx">growlnotify.exe</a> that works on Windows.</p>
<p>I started modifying their runner to work with growlnotify.exe, but it really bothered me how they copied and pasted the entire contents of the unittest.TextTestRunner.run method into their derived class so I threw together my own version which doesn&#8217;t contain such a flagrant disregard for object-oriented principles. You can clone/fork it <a href="http://github.com/jdiamond/CustomTestRunners">here</a>.</p>
<p>For the icons, I used Jamie Hill&#8217;s pass/fail smilies which I found <a href="http://thelucid.com/2007/07/30/autotest-growl-fail-pass-smilies/">here</a>.</p>
<p>I hope this helps others trying to do TDD with Python. I absolutely love saving in Vim and seeing a green smiley face immediately appear. =)</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.diamond.name/weblog/2010/06/18/autotest-for-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

