<?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>Techy Things &#187; test-driven-development</title>
	<atom:link href="https://tech.yipp.ca/category/test-driven-development/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Frontend unit tests done correctly with QUnit and CasperJS</title>
		<link>https://tech.yipp.ca/test-driven-development/frontend-unit-testing-done-correctly-qunit-phantomjs/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=frontend-unit-testing-done-correctly-qunit-phantomjs</link>
		<comments>https://tech.yipp.ca/test-driven-development/frontend-unit-testing-done-correctly-qunit-phantomjs/#comments</comments>
		<pubDate>Tue, 28 Oct 2014 23:09:05 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[test-driven-development]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=1140</guid>
		<description><![CDATA[<p>QUnit for unit testing &#160; CasperJS over PhantomJS for functional testing 1. Download appropriate software (links are for Windows) * Python 3.4.2 64-bit  or get the latest; * PhantomJS 1.9.8 or get the latest;&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/test-driven-development/frontend-unit-testing-done-correctly-qunit-phantomjs/">Frontend unit tests done correctly with QUnit and CasperJS</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>QUnit for unit testing</h2>
<p>&nbsp;</p>
<h2>CasperJS over PhantomJS for functional testing</h2>
<h4>1. Download appropriate software (links are for Windows)</h4>
<p>* <a href="https://www.python.org/ftp/python/3.4.2/python-3.4.2.amd64.msi">Python 3.4.2 64-bit</a>  or <a href="https://www.python.org/downloads/" target="_blank">get the latest</a>;<br />
* <a href="https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-windows.zip">PhantomJS 1.9.8</a> or <a href="http://phantomjs.org/download.html" target="_blank">get the latest</a>;<br />
<del>* <a href="https://github.com/n1k0/casperjs/zipball/1.0.3">CasperJS 1.0.3</a>  </del> the stable release of 1.0.3 does not work with their examples; it will give you the error : TypeError 'undefined' is not a function evaluating 'casper.test.begin'.<br />
* <a href="https://github.com/n1k0/casperjs/zipball/master">CasperJS latest BETA</a>;<del></del></p>
<h4>2. Install python</h4>
<p>* Just run the install<br />
* Add this to your PATH <strong><span style="color: #ff6600;">C:\Python34;C:\Python34\Scripts</span> </strong>(assuming Python got installed in C:\Python34</p>
<h4>3. Install PhantomJS</h4>
<p>* extract it to <span style="color: #ff6600;"><strong>C:\phantomjs</strong></span><br />
* add to PATH <strong><span style="color: #ff6600;">C:\phantomjs</span></strong><br />
or I just copy/paste <strong><span style="color: #000000;"><em>phantomjs.exe</em></span></strong> to <em><span style="color: #000000;"><strong>C:\Tools</strong></span></em> which is already on <strong>my</strong> PATH (if you want to do the same add <em><strong>C:\Tools</strong></em> to your PATH)</p>
<h4>4. Install CasperJS</h4>
<p>* extract all files to <strong><span style="color: #ff6600;">C:\casperjs</span> </strong>(The directory in the .zip is not good)<br />
* add to PATH <span style="color: #ff6600;"><strong>C:\casperjs\bin</strong></span> (Note:  <em>C:\casperjs\bin</em> is good for versions v1.1 and above. For older versions 1.0.X you need <em>C:\casperjs\batchbin</em>)<br />
* The official documentation is at <a href="http://docs.casperjs.org/en/latest/installation.html#casperjs-on-windows" target="_blank">http://docs.casperjs.org/en/latest/installation.html#casperjs-on-windows</a></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/test-driven-development/frontend-unit-testing-done-correctly-qunit-phantomjs/">Frontend unit tests done correctly with QUnit and CasperJS</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/test-driven-development/frontend-unit-testing-done-correctly-qunit-phantomjs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
