<?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; TDD</title>
	<atom:link href="http://jason.diamond.name/weblog/tag/tdd/feed/" rel="self" type="application/rss+xml" />
	<link>http://jason.diamond.name/weblog</link>
	<description>(a Weblog by Jason Diamond)</description>
	<lastBuildDate>Mon, 12 Jul 2010 00:58:14 +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>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>
		<item>
		<title>AutoRunner Downloads</title>
		<link>http://jason.diamond.name/weblog/2009/09/28/autorunner-downloads/</link>
		<comments>http://jason.diamond.name/weblog/2009/09/28/autorunner-downloads/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 04:23:06 +0000</pubDate>
		<dc:creator>Jason Diamond</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[AutoRunner]]></category>
		<category><![CDATA[BDD]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://jason.diamond.name/weblog/?p=75</guid>
		<description><![CDATA[I took some time tonight to throw together a build script for producing proper releases of AutoRunner. If you don&#8217;t feel like compiling it yourself, you can get a pre-compiled version here. I used ILMerge to merge the Growl for Windows assemblies into the executable so it&#8217;s basically a single file now. By the way, [...]]]></description>
			<content:encoded><![CDATA[<p>I took some time tonight to throw together a build script for producing proper releases of <a href="http://github.com/jdiamond/autorunner">AutoRunner</a>. If you don&#8217;t feel like compiling it yourself, you can get a pre-compiled version <a href="http://github.com/jdiamond/autorunner/downloads">here</a>.</p>
<p>I used <a href="http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx">ILMerge</a> to merge the <a href="http://www.growlforwindows.com/">Growl for Windows</a> assemblies into the executable so it&#8217;s basically a single file now.</p>
<p>By the way, last night on Twitter, <a href="http://blog.unhandled-exceptions.com/">Steve Bohlen</a> pointed me to <a href="http://averyblog.com/net/announcing-autotest-net-0-1/">this port of the original autotest to .NET</a>. I took a look at the code and it was much more complex than I was looking for. It actually builds and runs your tests every time you save which is much more often than I want.</p>
<p>I had AutoRunner turned on all day at work today and was loving how it would catch me breaking the tests when I wasn&#8217;t expecting it to. =)</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.diamond.name/weblog/2009/09/28/autorunner-downloads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AutoRunner</title>
		<link>http://jason.diamond.name/weblog/2009/09/27/autorunner/</link>
		<comments>http://jason.diamond.name/weblog/2009/09/27/autorunner/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 23:13:28 +0000</pubDate>
		<dc:creator>Jason Diamond</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[AutoRunner]]></category>
		<category><![CDATA[BDD]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://jason.diamond.name/weblog/?p=66</guid>
		<description><![CDATA[I recently came across this awesome code kata performance by Corey Haines here. Besides enjoying and learning from his actual performance, I was really impressed by his use of a Ruby tool called autotest. (I&#8217;m not sure, but it looks like it has become autospec.) Not being a Ruby developer, I wanted the same thing [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across this awesome code kata performance by Corey Haines <a href="http://charlesmaxwood.com/8-lessons-from-corey-haines-performance-kata/">here</a>.</p>
<p>Besides enjoying and learning from his actual performance, I was really impressed by his use of a Ruby tool called <a href="http://ph7spot.com/articles/getting_started_with_autotest">autotest</a>. (I&#8217;m not sure, but it looks like it has become <a href="http://www.nateclark.com/articles/2008/09/17/_autotest_-is-now-_autospec_-how-to-set-up-autospec-for-rspec-and-rails-with-zentest">autospec</a>.)</p>
<p>Not being a Ruby developer, I wanted the same thing for .NET. I did some searching, but my Google-fu failed me so I spent an hour hacking together my own.</p>
<p>The result is called <a href="http://github.com/jdiamond/autorunner">AutoRunner</a> (I know&#8211;way creative) and its source is available on GitHub.</p>
<p>If you want it, you have to download the source and compile it yourself for now. (UPDATE: You can now download it <a href="http://github.com/jdiamond/autorunner/downloads">here</a>!) Run it from your favorite console (PowerShell, right?) without any arguments to see what options it accepts.</p>
<p>AutoRunner is a little more general purpose than autotest/autospec is. Basically, it can run any executable when any file changes.</p>
<p>What I wanted it for was to run nunit-console.exe whenever my current tests assembly was rebuilt. To do that, I just invoke it with the right arguments.</p>
<p>If you have <a href="http://www.growlforwindows.com/">Growl for Windows</a> running, it will send it a notification which is pure eye candy and not necessary to actually get it to run your tests.</p>
<p>It&#8217;s not a Visual Studio add-in. It&#8217;s just a plain old console application. Using Visual Studio&#8217;s External Tools feature, however, it&#8217;s almost as good as an add-in. I set up an external tool with the appropriate arguments and it&#8217;s good to go for all of my projects.</p>
<p>To set this up for yourself, you&#8217;d create a new external tool with its command set to the path where you built AutoRunner.exe and its arguments set to something like the following (I&#8217;ve separated the options on their own lines, but you wouldn&#8217;t do that in Visual Studio):</p>
<pre>--target $(BinDir)\$(TargetName)$(TargetExt)
--exe C:\path\to\nunit-console.exe
--pass "$(TargetName) FTW!"
--fail "Oh noes! $(TargetName) is FAIL!"</pre>
<p>You can use whatever test runner you like, of course. Please note that you must have a file from your tests project open or selected in Solution Explorer when you activate the tool or your AutoRunner instance will be watching the wrong DLL!</p>
<p>It doesn&#8217;t support plug-ins the way autotest does and most of its functionality is hard-coded for now. If anybody finds it useful, let me know and maybe we can work on improving it together.</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.diamond.name/weblog/2009/09/27/autorunner/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SharpTestsEx</title>
		<link>http://jason.diamond.name/weblog/2009/09/26/sharptestsex/</link>
		<comments>http://jason.diamond.name/weblog/2009/09/26/sharptestsex/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 23:12:10 +0000</pubDate>
		<dc:creator>Jason Diamond</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[BDD]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://jason.diamond.name/weblog/?p=61</guid>
		<description><![CDATA[I&#8217;ve been using Fabio Maulo&#8216;s NUnitEx project to get fluent assertions on a personal project recently and have been loving it. He then went and moved on to a new project called SharpTestsEx, which he intended to be framework-agnostic, but currently only worked with MSTest which prevented me from being able to use it (since [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://fabiomaulo.blogspot.com/">Fabio Maulo</a>&#8216;s <a href="http://code.google.com/p/nunitex/">NUnitEx</a> project to get fluent assertions on a personal project recently and have been loving it.</p>
<p>He then went and moved on to a new project called <a href="http://sharptestex.codeplex.com/">SharpTestsEx</a>, which he intended to be framework-agnostic, but currently only worked with MSTest which prevented me from being able to use it (since I never saw a compelling reason to switch to MSTest).</p>
<p>Fabio was kind enough to let me make the changes necessary to remove the dependency on MSTest. A also made framework-specific versions of SharpTestsEx for MSTest, NUnit, and xUnit. The framework-specific versions aren&#8217;t really necessary, but they make the error messages a tiny bit prettier if you use the right one for the test framework you&#8217;re using.</p>
<p>You can read Fabio&#8217;s announcement <a href="http://fabiomaulo.blogspot.com/2009/09/sharp-tests-ex-030-fluent-and-lambda.html">here</a>.</p>
<p>I plan on updating my personal project to using SharpTestsEx next.</p>
<p>I just realized I never posted about that project; I&#8217;ll have to get around to that soon. If you&#8217;re curious, it&#8217;s a <a href="http://dannorth.net/introducing-bdd">behaviour-driven development</a> framework for .NET called <a href="http://code.google.com/p/behaven/">BehaveN</a>. I&#8217;m using it at my work and we&#8217;re loving it.</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.diamond.name/weblog/2009/09/26/sharptestsex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TestDriven.NET Keyboard Shortcuts</title>
		<link>http://jason.diamond.name/weblog/2009/09/04/testdriven-dot-net-keyboard-shortcuts/</link>
		<comments>http://jason.diamond.name/weblog/2009/09/04/testdriven-dot-net-keyboard-shortcuts/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 20:57:21 +0000</pubDate>
		<dc:creator>Jason Diamond</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://jason.diamond.name/weblog/?p=44</guid>
		<description><![CDATA[I&#8217;m so sick of Ctrl+Tab&#8217;ing back to my test file, finding the test I want to run, right-clicking it with the mouse, and selecting Run Test(s) or Test With. How come nobody told me that TestDriven.NET came with keyboard shortcuts? They have to be manually mapped, but once I did that, I&#8217;ve found them indispensible. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m so sick of Ctrl+Tab&#8217;ing back to my test file, finding the test I want to run, right-clicking it with the mouse, and selecting Run Test(s) or Test With.</p>
<p>How come nobody told me that <a href="http://www.testdriven.net/">TestDriven.NET</a> came with keyboard shortcuts? They have to be manually mapped, but once I did that, I&#8217;ve found them indispensible.</p>
<ul>
<li>Alt+1 : TestDriven.NET.RunTests</li>
<li>Alt+2 : TestDriven.NET.RerunWithDefault</li>
<li>Alt+3 : TestDriven.NET.Debugger</li>
<li>Alt+4 : TestDriven.NET.RerunWithDebugger</li>
</ul>
<p>I especially love the two shortcuts that repeat the most recent test run for me. Yeah, I know you can right-click in any file and select Repeat Test Run, but if I want to alternate between running inside or outside the debugger, I have to go find the test again. With my shortcuts, I can just hit Alt+2 or Alt+4 no matter where I am.</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.diamond.name/weblog/2009/09/04/testdriven-dot-net-keyboard-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
