<?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>rob bowley &#187; ironruby</title>
	<atom:link href="http://blog.robbowley.net/tag/ironruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.robbowley.net</link>
	<description>adventures in extreme programming</description>
	<lastBuildDate>Thu, 15 Jul 2010 08:12:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Thoughts on testing .Net code with RSpec, Cucumber &amp; IronRuby</title>
		<link>http://blog.robbowley.net/2009/02/22/thoughts-on-testing-net-code-with-rspec-ironruby/</link>
		<comments>http://blog.robbowley.net/2009/02/22/thoughts-on-testing-net-code-with-rspec-ironruby/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 17:20:27 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bdd]]></category>
		<category><![CDATA[ironruby]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[unit testing]]></category>

		<guid isPermaLink="false">http://blog.robbowley.net/?p=256</guid>
		<description><![CDATA[In a previous article I said I&#8217;d like to test my .Net code using RSpec so I&#8217;ve spent some time this weekend having a go at just that. IronRuby is still at alpha so was pretty flaky and I spent a lot of time hacking IronRuby and RSpec, but satisfyingly I eventually got it all [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://blog.robbowley.net/2009/02/04/bdd-syntax/">previous article</a> I said I&#8217;d like to test my .Net code using <a href="http://rspec.info/">RSpec</a> so I&#8217;ve spent some time this weekend having a go at just that. <a href="http://www.ironruby.net/">IronRuby</a> is still at alpha so was pretty flaky and I spent a lot of time hacking IronRuby and RSpec, but satisfyingly I eventually got it all working and did a few proof of concept examples. Surprisingly or not, there&#8217;s quite a few people out there with the same idea so if you want to have a go you wouldn&#8217;t go too far wrong to look at some of the examples I found (although none of them worked for me straight out of the box):</p>
<p><a href="http://msdn.microsoft.com/en-us/magazine/dd434651.aspx">Getting Started With IronRuby And RSpec</a><br />
<a href="http://www.patrickgannon.net/archive/2008/10/23/bdd-style-feature-tests-using-ironruby-and-rspeccucumber.aspx">BDD-style feature tests using IronRuby and RSpec/Cucumber</a><br />
<a href="http://khebbie.dk/post/2008/08/27/Example-of-using-ironRubys-mini_rspec-library.aspx">Example of using ironRubys mini_rspec library</a></p>
<p>Yeah, so game on I think. If you&#8217;re not sure why I&#8217;m so excited by the prospect of doing this I suggest you have a look at some <a href="http://www.code-magazine.com/article.aspx?quickid=0805061&#038;page=1">BDD</a> examples using <a href="http://rspec.info/">RSpec</a> and <a href="http://cukes.info/">Cucumber</a>. In my mind it&#8217;s light years ahead of what we can currently do with the .Net framework. </p>
<p>Whilst I really like the idea of actually doing this I do have some reservations:</p>
<ul>
<li>You still have to compile your .Net code so no enormous time savings.
</li>
<li>RSpec takes some time to get going as well, which is not a problem if you&#8217;re doing a large run but might be quite annoying otherwise.
</li>
<li>Have no idea how you&#8217;d be able to get test coverage reports (I&#8217;m sure some bright spark will get this working soon enough).</li>
<li>Not exactly sure how debugging would work (stepping into your .Net code from an RSpec test).
</ul>
<p>On a side note and forgetting about the instability of it for a second I was really impressed with IronRuby and the CLR interop so, er.. *gulp* well done Microsoft!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.robbowley.net/2009/02/22/thoughts-on-testing-net-code-with-rspec-ironruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
