<?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>Synthesis: Agile JavaScript Testing</title>
    <link>http://synthesis.sbecker.net/articles/2009/07/16/agile-javascript-testing</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>by Scott Becker</description>
    <item>
      <title>Agile JavaScript Testing</title>
      <description>&lt;p&gt;A couple weeks ago, I gave a talk at the &lt;a href="http://opensourcebridge.org/"&gt;Open Source Bridge&lt;/a&gt; conference in Portland Oregon on &lt;a href="http://opensourcebridge.org/sessions/139"&gt;Agile JavaScript Testing.&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;In this presentation, I first gave an overview of Test Driven Development for those front-end JS developers who might not have heard of it yet (!) and then the difference of &lt;span class="caps"&gt;TDD&lt;/span&gt; vs. Behavior Driven Development.&lt;/p&gt;


	&lt;p&gt;I then walked through some tools:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Screw.Unit, a nice &lt;span class="caps"&gt;BDD&lt;/span&gt; framework for JS that is quite similar to RSpec in Ruby land.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;Blue Ridge, a plugin for rails that integrates Screw-Unit with Rhino and Env.js and some rake tasks to create a command-line driven headless (no-browser == fast) testing workflow.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;JS Test Driver, a project that mounts one or more browsers as slaves, and a command-line tool which notifies all the listening browsers to run tests and aggregates the results. Very cool!&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;In the actual presentation I even did some live coding examples of Blue Ridge and JS Test Driver, and they worked perfectly. Here are the slides from the talk:&lt;/p&gt;


&lt;div style="width:425px;text-align:left" id="__ss_1640321"&gt;&lt;a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/joydivider/agile-javascript-testing" title="Agile JavaScript Testing"&gt;Agile JavaScript Testing&lt;/a&gt;&lt;object style="margin:0px" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jspresentation-090625150011-phpapp02&amp;#38;stripped_title=agile-javascript-testing" /&gt;&lt;param name="allowFullScreen" value="true"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jspresentation-090625150011-phpapp02&amp;#38;stripped_title=agile-javascript-testing" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;"&gt;View more &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/joydivider"&gt;Scott Becker&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 16 Jul 2009 00:55:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:dce54ac8-d564-40ff-bdee-7c08168114cd</guid>
      <author>sbecker</author>
      <link>http://synthesis.sbecker.net/articles/2009/07/16/agile-javascript-testing</link>
      <category>Ruby on Rails</category>
      <category>Web Development</category>
    </item>
  </channel>
</rss>
