<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>TDD developer &#187; NAnt</title>
	<atom:link href="http://testdrivendevelopment.wordpress.com/tag/nant/feed/" rel="self" type="application/rss+xml" />
	<link>http://testdrivendevelopment.wordpress.com</link>
	<description>Diary of an agile developer</description>
	<lastBuildDate>Wed, 28 Oct 2009 22:06:05 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='testdrivendevelopment.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a6ef45b2d30fa0fcbe697fa111d46fdd?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>TDD developer &#187; NAnt</title>
		<link>http://testdrivendevelopment.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://testdrivendevelopment.wordpress.com/osd.xml" title="TDD developer" />
		<item>
		<title>NAnt sucks and Rake rocks</title>
		<link>http://testdrivendevelopment.wordpress.com/2009/02/01/nant-sucks-and-rake-rocks/</link>
		<comments>http://testdrivendevelopment.wordpress.com/2009/02/01/nant-sucks-and-rake-rocks/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 13:34:59 +0000</pubDate>
		<dc:creator>makka</dc:creator>
				<category><![CDATA[continuous integration]]></category>
		<category><![CDATA[gallio]]></category>
		<category><![CDATA[NAnt]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://testdrivendevelopment.wordpress.com/2009/02/01/nant-sucks-and-rake-rocks/</guid>
		<description><![CDATA[In these days I’m moving my build scripts from NAnt to Rake. The main reason for doing this is that I’m moving from external dsl to an internal dsl. Internal DSLs are often the most approachable form of DSLs to write. Unlike external DSLs you don&#8217;t need to learn about grammars and language parsing, unlike [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=testdrivendevelopment.wordpress.com&blog=2459763&post=79&subd=testdrivendevelopment&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In these days I’m moving my build scripts from NAnt to Rake. The main reason for doing this is that I’m moving from external dsl to an internal dsl. Internal DSLs are often the most approachable form of DSLs to write. Unlike external DSLs you don&#8217;t need to learn about grammars and language parsing, unlike language workbenches you don&#8217;t need any special tools. With internal DSLs you work in your regular language environment.</p>
<p>This means that now I build my build scritps just with ruby. I believe this is a good way to learn this nice language. Rake in fact is nothing more that a Ruby library.</p>
<p>Getting started with Rake and .NET is very easy:</p>
<ul>
<li>Download the <a href="http://www.ruby-lang.org/en/downloads/">Ruby for windows one click installer</a>. </li>
<li>Install it </li>
<li>Create a file Rakefile.rb (type is text file) </li>
<li>Type:
<pre style="width:591px;height:342px;">task :default =&gt; :build

task :build =&gt; [:compile, :<span style="color:#00008b;">test</span>, :deploy] 

task :compile <span style="color:#0000ff;">do</span>
  params = '/t:Rebuild /nologo /v:m /<span style="color:#00008b;">p</span>:Configuration=Release src\demo.sln'
  msbuid = 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe'
  sh &quot;<span style="color:#8b0000;">#{msbuid} #{params}</span>&quot;
<span style="color:#0000ff;">end</span>

task :<span style="color:#00008b;">test</span> <span style="color:#0000ff;">do</span>
 runner = 'tools\\Gallio\\Gallio.Echo.exe'
 assemblies = FileList[&quot;<span style="color:#8b0000;">src/**/bin/Release/*.Fixture.exe</span>&quot;]
 extension = '' <span style="color:#008000;">#'/e:TeamCityExtension,Gallio.TeamCityIntegration'</span>
 sh &quot;<span style="color:#8b0000;">#{runner} #{assemblies} #{extension}</span>&quot;
<span style="color:#0000ff;">end</span>

task :deploy <span style="color:#0000ff;">do</span>
    sh &quot;<span style="color:#8b0000;">echo Task not yet implemented!</span>&quot;
<span style="color:#0000ff;">end</span></pre>
</li>
<li>
<p>Open a command prompt (Start-&gt;Run-&gt;Cmd) </p>
</li>
<li>
<p>Type: cd c:\[my RakeFile.rb folder] (obviously put your own path in) </p>
</li>
<li>Type: rake </li>
<li>
<p>Done! </p>
</li>
</ul>
<p>As you can see here above with rake there is no need to learn some crazy xml syntax. Whit this little script I compile my solution and run all unit tests. No need to write xml, only some ruby code. </p>
<p>Nothing more nothing less.</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:82fab512-4089-4dce-a650-ff5263fcf6fb" style="display:inline;float:none;margin:0;padding:0;">Technorati Tag: <a href="http://technorati.com/tags/rake" rel="tag">rake</a>,<a href="http://technorati.com/tags/ruby" rel="tag">ruby</a>,<a href="http://technorati.com/tags/nant" rel="tag">nant</a>,<a href="http://technorati.com/tags/gallio" rel="tag">gallio</a></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/testdrivendevelopment.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/testdrivendevelopment.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/testdrivendevelopment.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/testdrivendevelopment.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/testdrivendevelopment.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=testdrivendevelopment.wordpress.com&blog=2459763&post=79&subd=testdrivendevelopment&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://testdrivendevelopment.wordpress.com/2009/02/01/nant-sucks-and-rake-rocks/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eaac7e727c1e026a9677bf418eca3ee9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">makka</media:title>
		</media:content>
	</item>
		<item>
		<title>NAnt + NDepend.Console.exe and relative paths</title>
		<link>http://testdrivendevelopment.wordpress.com/2009/01/05/ndependconsoleexe-and-relative-path/</link>
		<comments>http://testdrivendevelopment.wordpress.com/2009/01/05/ndependconsoleexe-and-relative-path/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 13:31:49 +0000</pubDate>
		<dc:creator>makka</dc:creator>
				<category><![CDATA[continuous integration]]></category>
		<category><![CDATA[Continuous integrated]]></category>
		<category><![CDATA[NAnt]]></category>
		<category><![CDATA[NDepend]]></category>

		<guid isPermaLink="false">http://testdrivendevelopment.wordpress.com/2009/01/05/ndependconsoleexe-and-relative-path/</guid>
		<description><![CDATA[If you read the documentation of NDepend.Console.exe you learn that relative paths are not supported. These remarks also apply to paths provided with options /InDirs /OutDir and /XslForReport.
Here you can see the result of a wrong line command
 
and here the result of a right line command
 
Unfortunately this is a problem for my solutions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=testdrivendevelopment.wordpress.com&blog=2459763&post=66&subd=testdrivendevelopment&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you read the documentation of <a href="http://ndepend.com/NDependConsole.aspx">NDepend.Console.exe</a> you learn that relative paths are not supported. These remarks also apply to paths provided with options /InDirs /OutDir and /XslForReport.</p>
<p>Here you can see the result of a wrong line command</p>
<p><a href="http://testdrivendevelopment.files.wordpress.com/2009/01/image.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="106" alt="image" src="http://testdrivendevelopment.files.wordpress.com/2009/01/image-thumb.png?w=644&#038;h=106" width="644" border="0" /></a> </p>
<p>and here the result of a right line command</p>
<p><a href="http://testdrivendevelopment.files.wordpress.com/2009/01/image1.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="143" alt="image" src="http://testdrivendevelopment.files.wordpress.com/2009/01/image-thumb1.png?w=644&#038;h=143" width="644" border="0" /></a> </p>
<p>Unfortunately this is a problem for my solutions cause I need always relative path. My solution are continuous integrated using <a href="http://www.jetbrains.com/teamcity/">TeamCity</a> and in my setup the build agent checks out sources in a random folder on the build agent machine (for eg. C:\BuildAgent\work\12724a65ddd4c6d0).</p>
<p>Here the Version Control Settings page of my project inside my <a href="http://www.jetbrains.com/teamcity/">TeamCity</a> server where you can set the checkout directory.</p>
<p><a href="http://testdrivendevelopment.files.wordpress.com/2009/01/image2.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="159" alt="image" src="http://testdrivendevelopment.files.wordpress.com/2009/01/image-thumb2.png?w=644&#038;h=159" width="644" border="0" /></a> </p>
<p>Using relative path for me is a plus cause allow developers to freely decise the checkout project folder. For some of our customer this has been a project requirement.</p>
<p>Ok now you know why I need relative paths. Now I want to explain how I use <a href="http://nant.sourceforge.net/">NAnt</a> + <a href="http://ndepend.com">NDepend</a> inside my continuous integrated solution.&#160; </p>
<p>This is the target I use to run <a href="http://ndepend.com/NDependConsole.aspx">NDepend.Console.exe</a>. </p>
<p><a href="http://testdrivendevelopment.files.wordpress.com/2009/01/image3.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="124" alt="image" src="http://testdrivendevelopment.files.wordpress.com/2009/01/image-thumb3.png?w=644&#038;h=124" width="644" border="0" /></a> </p>
<p>As you can see using the <a href="http://nant.sourceforge.net/release/latest/help/functions/directory.get-current-directory.html">directory::get-current-directory</a> I can build an absolute path at run-time. Maybe this result can be obtained using the built-in property&#160; ${nant.project.basedir} but this is marked as deprecated so I prefer to use the <a href="http://nant.sourceforge.net/release/latest/help/functions/directory.get-current-directory.html">directory::get-current-directory</a> function.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/testdrivendevelopment.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/testdrivendevelopment.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/testdrivendevelopment.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/testdrivendevelopment.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/testdrivendevelopment.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/testdrivendevelopment.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/testdrivendevelopment.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/testdrivendevelopment.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/testdrivendevelopment.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/testdrivendevelopment.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=testdrivendevelopment.wordpress.com&blog=2459763&post=66&subd=testdrivendevelopment&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://testdrivendevelopment.wordpress.com/2009/01/05/ndependconsoleexe-and-relative-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eaac7e727c1e026a9677bf418eca3ee9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">makka</media:title>
		</media:content>

		<media:content url="http://testdrivendevelopment.files.wordpress.com/2009/01/image-thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://testdrivendevelopment.files.wordpress.com/2009/01/image-thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://testdrivendevelopment.files.wordpress.com/2009/01/image-thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://testdrivendevelopment.files.wordpress.com/2009/01/image-thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Use NAnt to run mbunit tests using gallio</title>
		<link>http://testdrivendevelopment.wordpress.com/2008/12/01/use-nant-to-run-mbunit-tests-using-gallio/</link>
		<comments>http://testdrivendevelopment.wordpress.com/2008/12/01/use-nant-to-run-mbunit-tests-using-gallio/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 19:55:11 +0000</pubDate>
		<dc:creator>makka</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gallio]]></category>
		<category><![CDATA[mbunit]]></category>
		<category><![CDATA[NAnt]]></category>

		<guid isPermaLink="false">http://testdrivendevelopment.wordpress.com/2008/12/01/use-nant-to-run-mbunit-tests-using-gallio/</guid>
		<description><![CDATA[Gallio has a great build-in support for NAnt! Unfortunately at the moment this is not well document so if you need to create a target to execute all tests inside an assembly you can write this xml fragment inside your NAnt project file:
&#60;target name=&#8221;test&#8221; depends=&#8221;build&#8221;&#62; &#160; &#60;gallio &#160;&#160;&#160; result-property=&#8221;exitCode&#8221; &#160;&#160;&#160; failonerror=&#8221;false&#8221; &#62; &#160;&#160;&#160; &#60;runner-extension value=&#8221;TeamCityExtension,Gallio.TeamCityIntegration&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=testdrivendevelopment.wordpress.com&blog=2459763&post=52&subd=testdrivendevelopment&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Gallio has a great build-in support for NAnt! <br />Unfortunately at the moment this is not well document so if you need to create a target to execute all tests inside an assembly you can write this xml fragment inside your NAnt project file:</p>
<p>&lt;target name=&#8221;test&#8221; depends=&#8221;build&#8221;&gt; <br />&nbsp; &lt;gallio <br />&nbsp;&nbsp;&nbsp; result-property=&#8221;exitCode&#8221; <br />&nbsp;&nbsp;&nbsp; failonerror=&#8221;false&#8221; &gt; <br />&nbsp;&nbsp;&nbsp; &lt;runner-extension value=&#8221;TeamCityExtension,Gallio.TeamCityIntegration&#8221; /&gt; <br />&nbsp;&nbsp;&nbsp; &lt;assemblies&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#8211; Specify the tests assemblies &#8211;&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name=&#8221;${src.dir}Data.Fixturebin${project.config}Data.Fixture.dll&#8221;/&gt; <br />&nbsp;&nbsp;&nbsp; &lt;/assemblies&gt; <br />&nbsp; &lt;/gallio&gt; <br />&nbsp; &lt;fail if=&#8221;${exitCode != &#8216;0&#8242;}&#8221; &gt;One or more tests failed. Please check the log for more details&lt;/fail&gt;&nbsp;&nbsp;&nbsp; <br />&lt;/target&gt;</p>
<p>don&#8217;t forget to load Gallio NAnt Tasks before start with this line of xml</p>
<p>&lt;loadtasks assembly=&#8221;.toolsGallioGallio.NAntTasks.dll&#8221; /&gt;</p>
<p>If you need more information you can take a look at comment in the source code <a href="http://code.google.com/p/mb-unit/source/browse/trunk/v3/src/Extensions/NAnt/Gallio.NAntTasks/GallioTask.cs">here</a></p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:02166a15-f528-4dcf-88d4-45d3b5ea5ee6" style="display:inline;margin:0;padding:0;">Technorati Tag: <a href="http://technorati.com/tags/NAnt" rel="tag">NAnt</a>,<a href="http://technorati.com/tags/Gallio" rel="tag">Gallio</a>,<a href="http://technorati.com/tags/mbunit" rel="tag">mbunit</a></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/testdrivendevelopment.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/testdrivendevelopment.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/testdrivendevelopment.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/testdrivendevelopment.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/testdrivendevelopment.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/testdrivendevelopment.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/testdrivendevelopment.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/testdrivendevelopment.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/testdrivendevelopment.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/testdrivendevelopment.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=testdrivendevelopment.wordpress.com&blog=2459763&post=52&subd=testdrivendevelopment&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://testdrivendevelopment.wordpress.com/2008/12/01/use-nant-to-run-mbunit-tests-using-gallio/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eaac7e727c1e026a9677bf418eca3ee9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">makka</media:title>
		</media:content>
	</item>
	</channel>
</rss>