
<?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>Mental Pandiculation &#187; unit testing</title>
	<atom:link href="http://mentalpandiculation.com/tag/unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://mentalpandiculation.com</link>
	<description>One Man's Attempt To Find Elegant Code Through Big Words</description>
	<lastBuildDate>Mon, 27 Jun 2011 23:31:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>JsTestDriver First Impressions</title>
		<link>http://mentalpandiculation.com/2010/01/jstestdriver-first-impressions/</link>
		<comments>http://mentalpandiculation.com/2010/01/jstestdriver-first-impressions/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 15:22:11 +0000</pubDate>
		<dc:creator>Niklaus Wirth's Ghost</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[JsTestDriver]]></category>
		<category><![CDATA[unit testing]]></category>

		<guid isPermaLink="false">http://mentalpandiculation.com/?p=235</guid>
		<description><![CDATA[I&#8217;m currently trying to get some unit tests written around a bunch of JavaScript code and I&#8217;m using JsTestDriver to do it. So far, I&#8217;m pretty impressed though there are some little gotchas here and there. It&#8217;s been a really good framework for basic testing assuming you aren&#8217;t doing a ton of work with other [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently trying to get some unit tests written around a bunch of JavaScript code and I&#8217;m using <a href="http://code.google.com/p/js-test-driver/">JsTestDriver</a> to do it.  So far, I&#8217;m pretty impressed though there are some little gotchas here and there.  It&#8217;s been a really good framework for basic testing assuming you aren&#8217;t doing a ton of work with other libraries like Prototype.js and <a href="http://script.aculo.us/">script.aculo.us</a> which of course I am.  I&#8217;m sure there are ways around it but it&#8217;s going to take some digging to figure out what they are.</p>
<p>One minor thing that has been different for me from the documentation is that when I try to run tests, I need to specify the server explicitly on the command line even though I have a server running and a browser captured.  The documentation says you can do this:</p>
<pre name="code" class="java">java -jar JsTestDriver.jar --tests all</pre>
<p>.</p>
<p>However, I&#8217;ve found that I need to do:</p>
<pre name="code" class="java">java -jar JsTestDriver.jar --tests all --server http://localhost:9876</pre>
<p>Where the server value may be different according to what server you started up.</p>
<p>Now I&#8217;m off to figure out how I can mock some of the Prototype.js dependencies.</p>
]]></content:encoded>
			<wfw:commentRss>http://mentalpandiculation.com/2010/01/jstestdriver-first-impressions/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

