<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Does unit-testing deserve its own DSL?</title>
	<atom:link href="http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/</link>
	<description>Hans-Eric Grönlund on software development</description>
	<pubDate>Thu, 16 Oct 2008 04:35:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: schlenk</title>
		<link>http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1341</link>
		<dc:creator>schlenk</dc:creator>
		<pubDate>Tue, 11 Dec 2007 20:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1341</guid>
		<description>In very dynamic languages such DSLs can be done with not too much overhead.

tcltest for example is a little test DSL, but for the stuff you wanted one could use things like variable and execution traces and maybe coupled with the unknown handler. Just delete all commands from a slave interpreter other than [unknown] and inspect what gets called.

For some intro to Tcltest http://www.tclscripting.com/articles/apr06/article1.html</description>
		<content:encoded><![CDATA[<p>In very dynamic languages such DSLs can be done with not too much overhead.</p>
<p>tcltest for example is a little test DSL, but for the stuff you wanted one could use things like variable and execution traces and maybe coupled with the unknown handler. Just delete all commands from a slave interpreter other than [unknown] and inspect what gets called.</p>
<p>For some intro to Tcltest <a href="http://www.tclscripting.com/articles/apr06/article1.html" rel="nofollow">http://www.tclscripting.com/articles/apr06/article1.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn Faassen</title>
		<link>http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1339</link>
		<dc:creator>Martijn Faassen</dc:creator>
		<pubDate>Tue, 11 Dec 2007 19:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1339</guid>
		<description>I'm not really much into mock objects, but indeed there are quite a few mock object libraries in Python that can do things like that.

http://labix.org/mocker

is a recent one that comes from a very good Python programmer. I should try it out with doctests one day. The examples in the mocker documentation are probably doctests already. :)</description>
		<content:encoded><![CDATA[<p>I&#8217;m not really much into mock objects, but indeed there are quite a few mock object libraries in Python that can do things like that.</p>
<p><a href="http://labix.org/mocker" rel="nofollow">http://labix.org/mocker</a></p>
<p>is a recent one that comes from a very good Python programmer. I should try it out with doctests one day. The examples in the mocker documentation are probably doctests already. <img src='http://www.hans-eric.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans-Eric</title>
		<link>http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1338</link>
		<dc:creator>Hans-Eric</dc:creator>
		<pubDate>Tue, 11 Dec 2007 19:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1338</guid>
		<description>Good point! Probably that's the reason we don't see any unit-testing DSLs out there.
A thought: Shouldn't a reflective programming language like Python be able to implement a unit-testing framework with "unconditional mocking", without the need to create a new language? The framework should be able to generate the mocking code and inject it in the source code during execution. Maybe this has already been done?</description>
		<content:encoded><![CDATA[<p>Good point! Probably that&#8217;s the reason we don&#8217;t see any unit-testing DSLs out there.<br />
A thought: Shouldn&#8217;t a reflective programming language like Python be able to implement a unit-testing framework with &#8220;unconditional mocking&#8221;, without the need to create a new language? The framework should be able to generate the mocking code and inject it in the source code during execution. Maybe this has already been done?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn Faassen</title>
		<link>http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1337</link>
		<dc:creator>Martijn Faassen</dc:creator>
		<pubDate>Tue, 11 Dec 2007 18:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1337</guid>
		<description>Unit testing should be in the way as little as possible. Learning or reading a new programming language seems to be "in the way".

The best way I've seen unit testing disappear into the background is with doctests:

http://en.wikipedia.org/wiki/Doctest

http://blog.ianbicking.org/2007/11/27/java-bdd/

That doesn't take care of any mocking concerns, of course, but another language just to write tests seems overkill.</description>
		<content:encoded><![CDATA[<p>Unit testing should be in the way as little as possible. Learning or reading a new programming language seems to be &#8220;in the way&#8221;.</p>
<p>The best way I&#8217;ve seen unit testing disappear into the background is with doctests:</p>
<p><a href="http://en.wikipedia.org/wiki/Doctest" rel="nofollow">http://en.wikipedia.org/wiki/Doctest</a></p>
<p><a href="http://blog.ianbicking.org/2007/11/27/java-bdd/" rel="nofollow">http://blog.ianbicking.org/2007/11/27/java-bdd/</a></p>
<p>That doesn&#8217;t take care of any mocking concerns, of course, but another language just to write tests seems overkill.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1321</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 10 Dec 2007 22:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.hans-eric.com/2007/12/10/does-unit-testing-deserve-its-own-dsl/#comment-1321</guid>
		<description>I'd personally say it does from my experience in programming!</description>
		<content:encoded><![CDATA[<p>I&#8217;d personally say it does from my experience in programming!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.310 seconds -->
