<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Wood for the Trees: MicroTest 1.2 &amp; MicroStub 1.0: Your microscopic testing pals</title>
    <link>http://www.mathewabonyi.com/articles/2007/01/21/microtest-12-microstub-10-your-microscopic-testing-pals</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>struggling to dig life</description>
    <item>
      <title>MicroTest 1.2 &amp;amp; MicroStub 1.0: Your microscopic testing pals</title>
      <description>&lt;p&gt;Just after writing the previous post, I discovered the need for a little bit of method stubbing and promptly fell upon the task with MicroStyle&lt;sup&gt;&lt;a href="#fn1"&gt;1&lt;/a&gt;&lt;/sup&gt;. Also, I will officially keep MicroTest under 4 kilobytes&lt;sup&gt;&lt;a href="#fn2"&gt;2&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;


So, without further ado, here are the latest new features of MicroTest:
	&lt;ul&gt;
	&lt;li&gt;colour output&lt;/li&gt;
		&lt;li&gt;execution time in microseconds&lt;/li&gt;
		&lt;li&gt;MicroStub: overwrite a method with stub()&lt;/li&gt;
		&lt;li&gt;twice as fast (no sweat)&lt;/li&gt;
		&lt;li&gt;a self-test! (&lt;code&gt;SELFTEST=true ruby microtest.rb&lt;/code&gt;)&lt;/li&gt;
		&lt;li&gt;and its own home. Awwww.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;MicroTest now lives in my Google Code &lt;span class="caps"&gt;SVN&lt;/span&gt; repository.&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_shell "&gt;  svn co http://mabs29.googlecode.com/svn/trunk/other/microtest/&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p id="fn1"&gt;&lt;sup&gt;1&lt;/sup&gt; By the way, if you haven&amp;#8217;t noticed yet, I&amp;#8217;ve been a little inspired by &lt;a href="http://code.whytheluckystiff.net/camping/"&gt;Camping&lt;/a&gt;.&lt;/p&gt;


	&lt;p id="fn2"&gt;&lt;sup&gt;2&lt;/sup&gt;  Unlike Camping (because MicroTest is less complicated), I think it only fair that the 4 kilobytes include comments and the self-test.&lt;/p&gt;</description>
      <pubDate>Sun, 21 Jan 2007 12:49:43 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:1e2cc1e4-441e-4bcb-8ee8-1a0547eb544a</guid>
      <author>Mathew Abonyi</author>
      <link>http://www.mathewabonyi.com/articles/2007/01/21/microtest-12-microstub-10-your-microscopic-testing-pals</link>
      <category>Ruby</category>
      <trackback:ping>http://www.mathewabonyi.com/articles/trackback/43</trackback:ping>
    </item>
  </channel>
</rss>
