<?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>Dominique Stender &#187; unit testing</title>
	<atom:link href="http://www.st-webdevelopment.com/tag/unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.st-webdevelopment.com</link>
	<description>Good software is only the beginning</description>
	<lastBuildDate>Sun, 26 Feb 2012 16:24:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>New VM, first tests with Phing</title>
		<link>http://www.st-webdevelopment.com/test-automation/2009/11/new-vm-first-tests-with-phing/</link>
		<comments>http://www.st-webdevelopment.com/test-automation/2009/11/new-vm-first-tests-with-phing/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 19:02:48 +0000</pubDate>
		<dc:creator>Dominique</dc:creator>
				<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[API doc]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[software build]]></category>
		<category><![CDATA[unit testing]]></category>

		<guid isPermaLink="false">http://webserver.local/wordpress/?p=4</guid>
		<description><![CDATA[This is a summary of an experience on how far you can take test automation within a couple of hours.]]></description>
			<content:encoded><![CDATA[<p>I spent some time today to set up a new <a title="VMWare.com" href="http://www.vmware.com/" target="_blank">Virtual Machine</a>. My current development system is based on <a title="Ubuntu Linux Distribution" href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> <a href="http://releases.ubuntu.com/intrepid/" target="_blank">Intrepid</a> and starts acting up. I can't really isolate the issue, some network trouble is there.</p>
<p>Anyways... originally I just wanted to tap a bit into test automation [<a title="Martin Fowler on Continuous Integration" href="http://martinfowler.com/articles/continuousIntegration.html" target="_blank">1</a>, <a title="The Wikipedia on Continuous Integration" href="http://en.wikipedia.org/wiki/Continuous_integration" target="_blank">2</a>] but I ended up downloading the 32bit server version of Ubuntu <a title="Ubuntu Karmic Koala 32bit Server Download" href="http://www.ubuntu.com/getubuntu/download-server" target="_blank">Koala</a>. With my crappy Tata Photon+ it took a while until the CD .iso file was there but after that it went smooth. The installation system is pretty straight forward and did a decent job of detecting my keyboard.</p>
<p>I chose the LAMP, <a title="Open Secure Shell" href="http://www.openssh.com/" target="_blank">OpenSSH</a>, <a title="Samba CIFS" href="http://www.samba.org/" target="_blank">Samba</a> packages and let it install.</p>
<p>After that it was just a matter of installing a few more php packages, along with <a title="PHP Extension and Application Repository" href="http://pear.php.net" target="_blank">PEAR</a>. This enabled me to set up everything I needed to get a glimpse of what test automation is all about.</p>
<pre><code># install PHPUnit (make sure you catch the dependencies)
&gt; pear channel-discover pear.phpunit.de
&gt; pear install phpunit/PHPUnit

# install PhpDocumentor
&gt; pear install PhpDocumentor

# install Phing (once more, cover the dependencies)
&gt; pear channel-discover pear.phing.info
&gt; pear install phing/phing
</code><strong><strong> </strong></strong></pre>
<p>In case you're in doubt what all this means:</p>
<p><a title="PHP Unit testing" href="http://www.phpunit.de/" target="_blank">PHPUnit </a>is the unittesting tool for PHP, a clone of JUnit basically...<br />
<a title="PHP Documentor" href="http://www.phpdoc.org/" target="_blank">PhpDocumentor</a> generates a Html (.pdf, ...) API Doc out of your source code comments...<br />
and finally <a title="Phing - the PHP build system" href="http://phing.info/trac/" target="_blank">Phing </a>is a build tool written in and for PHP.</p>
<p>The whole setup tool me less than two hours after the .iso file was there, and that includes additional things like setting up a Samba share and configuring two VirtualHosts for <a title="The Apache Webserver" href="http://httpd.apache.org/" target="_blank">Apache</a>. Really cool and really really smooth.</p>
<p>Now with a short but to-the-point <a title="Continuous Integration with PHP" href="http://www.linux.com/archive/articles/60657" target="_blank">article </a>on <a title="Linux.com" href="http://www.linux.com/" target="_blank">Linux.com</a> I got a test scenario running. What joy! you simply enter 'phing' on the commandline and the tools clear up the build filesystem, fill the build again with the latest version of the software, run PhpDocumentor to generate the up-to-date APIDoc, then run all unittests and in case those succeed they generate a tarball with the whole system.</p>
<p><strong>How cool is that?!</strong> Really impressive. Those who know me also know that it's hard to impress me <img src='http://www.st-webdevelopment.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .<br />
[Update: <a title="Series on continuous integration with PHP" href="/test-automation/2009/11/howto-setting-continous-integration-php/" target="_self">By now there is a much more in depth series of articles online here in my blog</a>]</p>

<!-- using Like-Button-Plugin-For-Wordpress [v4.5.2] | by Stefan Natter (http://www.gb-world.net) -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.st-webdevelopment.com/test-automation/2009/11/new-vm-first-tests-with-phing/&amp;layout=standard&amp;show_faces=false&amp;width=550&amp;action=like&amp;colorscheme=light&amp;height=30&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:550px; height:30px"></iframe>
<!-- using Like-Button-Plugin-For-Wordpress [v4.5.2] | by Stefan Natter (http://www.gb-world.net) -->
]]></content:encoded>
			<wfw:commentRss>http://www.st-webdevelopment.com/test-automation/2009/11/new-vm-first-tests-with-phing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

