<?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>test driven development | Nerdpress.org</title>
	<atom:link href="https://nerdpress.org/tag/test-driven-development/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Fri, 02 Oct 2009 12:28:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>JS Unit Testing mit FireUnit &#8211; JavaScript Unit Testing Extension</title>
		<link>https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/</link>
					<comments>https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/#comments</comments>
		
		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Fri, 02 Oct 2009 12:28:16 +0000</pubDate>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[test driven development]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=317</guid>

					<description><![CDATA[<p>FireUnit ist eine Extension für eine Extension. Für Firebug nämlich. Damit lassen sich dann ziemlich komfortabel Javascript Unit Tests machen. Der Funktionsumfang ist überschaubar, was mir das Ding auf Anhieb sympathisch macht. true / false Tests und String compare: Regex String Compare: und die Ergebnisse in der Firebug Konsole anzeigen: &#8230; was dann so aussieht: &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/" class="more-link">Continue reading<span class="screen-reader-text"> "JS Unit Testing mit FireUnit &#8211; JavaScript Unit Testing Extension"</span></a></p>
The post <a href="https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/">JS Unit Testing mit FireUnit – JavaScript Unit Testing Extension</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p><a href="http://fireunit.org/">FireUnit</a> ist eine Extension für eine Extension. Für <a href="https://addons.mozilla.org/de/firefox/addon/1843">Firebug</a> nämlich.<br />
Damit lassen sich dann ziemlich komfortabel Javascript Unit Tests machen.</p>
<p>Der Funktionsumfang ist überschaubar, was mir das Ding auf Anhieb sympathisch macht.</p>
<p>true / false Tests und String compare:</p>
<pre class="brush: jscript; title: ; notranslate">

if ( typeof fireunit === &quot;object&quot; ) {
// Simple true-like/false-like testing
fireunit.ok( true, &quot;I&#039;m going to pass!&quot; );
fireunit.ok( false, &quot;I&#039;m going to fail!&quot; );

// Compare two strings - shows a diff of the
// results if they&#039;re different
fireunit.compare(
&quot;The lazy fox jumped over the log.&quot;,
&quot;The lazy brown fox jumped the log.&quot;,
&quot;Are these two strings the same?&quot;
);

}

</pre>
<p><span id="more-317"></span></p>
<p>Regex String Compare:</p>
<pre class="brush: jscript; title: ; notranslate">

if ( typeof fireunit === &quot;object&quot; ) {

// Compare a string using a regular expression
fireunit.reCompare(
&quot;The .* fox jumped the log.&quot;,
&quot;The lazy brown fox jumped the log.&quot;,
&quot;Compare a string using a RegExp.&quot;
);

}

</pre>
<p>und die Ergebnisse in der Firebug Konsole anzeigen:</p>
<pre class="brush: jscript; title: ; notranslate">

if ( typeof fireunit === &quot;object&quot; ) {

// Display the total results
fireunit.testDone();

}

</pre>
<p>&#8230; was dann so aussieht:</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-325" title="FireUnit Screenshot" src="https://nerdpress.org/wp-content/uploads/2009/10/Bild-2.png" alt="FireUnit Screenshot" width="498" height="235" /></p>
<p>nice.</p>The post <a href="https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/">JS Unit Testing mit FireUnit – JavaScript Unit Testing Extension</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Lime (functional) tests aufzeichnen</title>
		<link>https://nerdpress.org/2009/09/06/lime-functional-tests-aufzeichnen/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 06 Sep 2009 13:46:26 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software engineering]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Lime]]></category>
		<category><![CDATA[test driven development]]></category>
		<guid isPermaLink="false">http://nerdpress.maxgirkens.de/?p=79</guid>

					<description><![CDATA[<p>Ein vielversprechendes viel versprechendes Symfony-Plugin ist das swFunctionalTestGeneration-Plugin, welches es einem erlaubt, Funktionstests sozusagen als Macros aufzuzeichnen und wiederum als Lime-Test abzuspeichern. Als IDE dient ein handelsüblicher Webbrowser, weitere Voraussetzung ist ein Symfony-Projekt mit aktivierter Debug-Toolbar, in die sich die Erweiterung via symfony-Filter ein-hakt. Dann genügt ein Button um die Aufzeichnung eines Anwendungsfalls zu starten &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2009/09/06/lime-functional-tests-aufzeichnen/" class="more-link">Continue reading<span class="screen-reader-text"> "Lime (functional) tests aufzeichnen"</span></a></p>
The post <a href="https://nerdpress.org/2009/09/06/lime-functional-tests-aufzeichnen/">Lime (functional) tests aufzeichnen</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Ein <span style="text-decoration: line-through;">vielversprechendes</span> viel versprechendes Symfony-Plugin ist das <a href="http://www.symfony-project.org/plugins/swFunctionalTestGenerationPlugin/1_2_0">swFunctionalTestGeneration</a>-Plugin, welches es einem erlaubt, Funktions<a href="http://en.wikipedia.org/wiki/Test_Driven_Development">tests </a>sozusagen als Macros aufzuzeichnen und wiederum als <a href="http://www.symfony-project.org/book/1_2/15-Unit-and-Functional-Testing#The%20Lime%20Testing%20Framework">Lime-Test</a> abzuspeichern. Als IDE dient ein handelsüblicher Webbrowser, weitere Voraussetzung ist ein Symfony-Projekt mit aktivierter Debug-Toolbar, in die sich die Erweiterung via symfony-Filter ein-hakt.<span id="more-79"></span></p>
<p>Dann genügt ein Button um die Aufzeichnung eines Anwendungsfalls zu starten und nach erfolgter Testaktion wieder zu stoppen. Den generierten PHP-Code kann man nunmehr per c&amp;p  in eine Test-Datei überführen, die sich ab jetzt als fertiger Functionaltest bspw. als Symfony-Task ausführen lässt.</p>
<p>Das klingt für <span style="text-decoration: line-through;">faule</span> effizient arbeitende Menschen extrem interessant. Mehr dazu hier:</p>
<p><a title="Link zur Plugin-Seite" href="http://www.symfony-project.org/plugins/swFunctionalTestGenerationPlugin/1_2_0">http://www.symfony-project.org/plugins/swFunctionalTestGenerationPlugin/1_2_0</a></p>
<p>Natürlich und gerade was Ajax-getriebene Funktionen angeht, kann Lime als Client-Simulator nicht alle Möglichkeiten moderner Webbrowser abdecken, sodass man bei komplexen Funktions- bzw. reinen GUI-Tests bei <a href="http://seleniumhq.org/">Selenium</a> besser aufgehoben ist.</p>The post <a href="https://nerdpress.org/2009/09/06/lime-functional-tests-aufzeichnen/">Lime (functional) tests aufzeichnen</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
