<?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>2Paths &#187; unit testing</title>
	<atom:link href="http://www.2paths.com/tag/unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.2paths.com</link>
	<description>Custom Software Technical Architecture, Design and Development in Vancouver, BC, Canada</description>
	<lastBuildDate>Mon, 27 Sep 2010 01:15:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Grails 1.1 Testing &#8211; Unit, Integration &amp; Functional</title>
		<link>http://www.2paths.com/2009/07/20/grails-11-testing-unit-integration-functional/</link>
		<comments>http://www.2paths.com/2009/07/20/grails-11-testing-unit-integration-functional/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 21:50:28 +0000</pubDate>
		<dc:creator>dkoo</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Under the hood]]></category>
		<category><![CDATA[antbuilder]]></category>
		<category><![CDATA[controllerunittestcase]]></category>
		<category><![CDATA[functional test]]></category>
		<category><![CDATA[functional testing]]></category>
		<category><![CDATA[Grails]]></category>
		<category><![CDATA[grails 1.1]]></category>
		<category><![CDATA[grails testing]]></category>
		<category><![CDATA[grailsunittestcase]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[groovytestcase]]></category>
		<category><![CDATA[htmlunit]]></category>
		<category><![CDATA[integration test]]></category>
		<category><![CDATA[integration testing]]></category>
		<category><![CDATA[mockdomain]]></category>
		<category><![CDATA[unit test]]></category>
		<category><![CDATA[unit testing]]></category>

		<guid isPermaLink="false">http://www.2paths.com/?p=1138</guid>
		<description><![CDATA[Last Friday I gave a presentation to the team here at 2Paths on the testing capabilities in Grails 1.1.
As you Grails die-hards know, Grails 1.1 introduced the new GrailsUnitTestCase class which is a very useful extension of GroovyTestCase with support for mocking the dynamic properties and methods that Grails injects into various types of classes [...]]]></description>
			<content:encoded><![CDATA[<p>Last Friday I gave a <a href="http://www.slideshare.net/dkoo761/grails-11-testing-unit-integration-functional">presentation</a> to the team here at 2Paths on the testing capabilities in Grails 1.1.</p>
<p>As you Grails die-hards know, Grails 1.1 introduced the new <a href="http://grails.org/doc/1.1.1/guide/9.%20Testing.html#9.1%20Unit%20Testing">GrailsUnitTestCase</a> class which is a very useful extension of <a href="http://groovy.codehaus.org/Unit+Testing">GroovyTestCase</a> with support for mocking the dynamic properties and methods that Grails injects into various types of classes (domain, controller &amp; taglibs). Getting the team up to speed on this change was the original purpose of the presentation, but I decided to expand it to cover the full spectrum of testing capabilities in Grails 1.1 for those who might not have much exposure to it previously (including me!)</p>
<p>The presentation covered:</p>
<p>- the benefits &amp; drawbacks of each type of testing: <a href="http://en.wikipedia.org/wiki/Unit_testing">unit testing</a>, <a href="http://en.wikipedia.org/wiki/Integration_testing">integration testing</a>, <a href="http://en.wikipedia.org/wiki/Functional_testing">functional testing</a>.</p>
<p>- details on the new GrailsUnitTestCase and it&#8217;s extensions (ControllerUnitTestCase and TagLibUnitTestCase)</p>
<p>- a few &#8220;gotchas&#8221; &#8211; such as using mockDomain with inheritance hierarchies</p>
<p>- WebTest goodness &#8211; test organization &amp; re-use, Groovy step, passing params between Groovy &amp; WebTest contexts, a little dive into using HtmlUnit to test AJAX</p>
<p>- general recommendations for what types of tests to create for each artifact (domain classes, controllers, services, etc)</p>
<p>Here&#8217;s a link to the presentation on SlideShare.net (where you can view it online or download it):</p>
<div style="width: 425px; text-align: left;"><a title="Grails 1.1 Testing - Unit, Integration &amp; Functional" href="http://www.slideshare.net/dkoo761/grails-11-testing-unit-integration-functional">Grails 1.1 Testing &#8211; Unit, Integration &amp; Functional</a>  </p>
<div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/dkoo761">Dave Koo</a>.</div>
</div>
<p>Happy testing!<br />
Dave</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2paths.com/2009/07/20/grails-11-testing-unit-integration-functional/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

