<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devlicio.us/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hadi Hariri : Testing</title><link>http://devlicio.us/blogs/hadi_hariri/archive/tags/Testing/default.aspx</link><description>Tags: Testing</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Machine.Specifications for ReSharper 6 now available</title><link>http://devlicio.us/blogs/hadi_hariri/archive/2011/07/20/machine-specifications-for-resharper-6-now-available.aspx</link><pubDate>Wed, 20 Jul 2011 14:16:00 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:68008</guid><dc:creator>Hadi Hariri</dc:creator><slash:comments>11</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devlicio.us/blogs/hadi_hariri/rsscomments.aspx?PostID=68008</wfw:commentRss><comments>http://devlicio.us/blogs/hadi_hariri/archive/2011/07/20/machine-specifications-for-resharper-6-now-available.aspx#comments</comments><description>&lt;p&gt;Many, myself included, have been eagerly awaiting the release of the ReSharper Runner of Machine.Specification (MSpec) for ReSharper 6. I&amp;rsquo;m glad to announce that this is now available, which is the result of a team-effort between &lt;a href="http://twitter.com/kropp"&gt;Victor Kropp&lt;/a&gt;, &lt;a href="http://twitter.com/#!/lucisferre"&gt;Chris Nicola&lt;/a&gt;, myself and of course &lt;a href="http://twitter.com/#!/agross"&gt;Alexander Gross&lt;/a&gt;, long-time contributor and main maintainer of the MSpec project. &lt;/p&gt;
&lt;p&gt;NuGet packages have already been updated to support ReSharper 6. The source code can also be obtained via &lt;a href="http://www.symbolsource.org/"&gt;SymbolSource.org&lt;/a&gt; if using NuGet or directly from &lt;a href="https://github.com/agross/machine.specifications"&gt;Alexander&amp;rsquo;s GitHub account&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://devlicious.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/hadi_5F00_hariri/SNAGHTML5fd19d5_5F00_5FA3ABE7.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:10px 0px 0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="SNAGHTML5fd19d5" alt="SNAGHTML5fd19d5" src="http://devlicious.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/hadi_5F00_hariri/SNAGHTML5fd19d5_5F00_thumb_5F00_03102A80.png" border="0" height="324" width="753" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Installing the Runner in ReSharper 6&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re new to MSpec or have simply forgotten how to install the runner under ReSharper, here are some simple steps to use Mspec in your project and integrate it with ReSharper:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;1&lt;/b&gt;. Run the command &lt;i&gt;install-package&lt;/i&gt; &lt;b&gt;Machine.Specifications &lt;/b&gt;(or &lt;b&gt;Machine.Specifications-Signed&lt;/b&gt; if you want the signed version). If this is an existing project, issue the command &lt;i&gt;update-package &lt;/i&gt;instead of &lt;i&gt;install-package&lt;/i&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;2&lt;/b&gt;. Inside the packages folder corresponding to Machine.Specifications, a &lt;i&gt;tools&lt;/i&gt; folder is created with a series of assemblies and some batch files. There are a series of batch files named InstallResharperRunner.X.X. &amp;ndash; VS20XX.bat where X&amp;rsquo;s correspond to the version of ReSharper and of Visual Studio. By executing the corresponding one, it will copy the assemblies to the ReSharper plug-in folder. &lt;/p&gt;
&lt;p&gt;You can of course do the second step manually, by copying the Machine.Specifications.ReSharperRunner.X.Y files to the ReSharper Plugins folder, located either under the ReSharper bin folder in %Program Files%\JetBrains\ReSharperX\bin (for all users) or under %APPDATA%\JetBrains\ReSharperX\bin (user-specific settings).&lt;/p&gt;
&lt;p&gt;With that you should be up and running.&lt;/p&gt;
&lt;p&gt;Enjoy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=68008" width="1" height="1"&gt;</description><category domain="http://devlicio.us/blogs/hadi_hariri/archive/tags/Tools/default.aspx">Tools</category><category domain="http://devlicio.us/blogs/hadi_hariri/archive/tags/ReSharper/default.aspx">ReSharper</category><category domain="http://devlicio.us/blogs/hadi_hariri/archive/tags/MSpec/default.aspx">MSpec</category><category domain="http://devlicio.us/blogs/hadi_hariri/archive/tags/Testing/default.aspx">Testing</category></item><item><title>Regression tests, do it now.</title><link>http://devlicio.us/blogs/hadi_hariri/archive/2010/08/30/regression-tests-do-it-now.aspx</link><pubDate>Mon, 30 Aug 2010 12:24:00 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:61750</guid><dc:creator>Hadi Hariri</dc:creator><slash:comments>8</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devlicio.us/blogs/hadi_hariri/rsscomments.aspx?PostID=61750</wfw:commentRss><comments>http://devlicio.us/blogs/hadi_hariri/archive/2010/08/30/regression-tests-do-it-now.aspx#comments</comments><description>&lt;p&gt;When you encounter a bug, do you first write a failing test before fixing it? You should. But the vast majority of us sometimes do not. External pressure (read Customer, Teammates or Management) moves us in the opposite direction. Everything we&amp;rsquo;ve learnt about unit testing and good software practices go out the window, and the sheer pressure forces us to fix the issue as fast as possible! We focus more on getting the job &lt;strong&gt;done&lt;/strong&gt;* and deploying than worrying about adding another test to our suite. &lt;/p&gt;
&lt;p&gt;Adding that test is not about increasing our code coverage or patting ourselves on the back, with an optional tweet, that we are good developers. It&amp;rsquo;s about putting regression tests in place. &lt;/p&gt;
&lt;p&gt;Of course, we could always just apply the fix, and then later, calmly add a test. However, there&amp;rsquo;s always another urgent bug fix, feature, or customer breathing down our necks, so things just get putt off.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s hard to not be tempted to just fix something then and there. Fight the temptation though if you can. Write that failing test first! &lt;/p&gt;
&lt;p&gt;[*Implicitly changing the definition of &lt;strong&gt;Done &lt;/strong&gt;on the go]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=61750" width="1" height="1"&gt;</description><category domain="http://devlicio.us/blogs/hadi_hariri/archive/tags/Testing/default.aspx">Testing</category></item></channel></rss>