<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to unit-test code that interacts with a database</title>
	<atom:link href="http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/</link>
	<description>Stay curious!</description>
	<lastBuildDate>Fri, 12 Mar 2010 03:51:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rick</title>
		<link>http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-17510</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Tue, 29 Dec 2009 00:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-17510</guid>
		<description>Guys,
is there any tool to do unit test on MySQL?
Thx.</description>
		<content:encoded><![CDATA[<p>Guys,<br />
is there any tool to do unit test on MySQL?<br />
Thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-17475</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 23 Dec 2009 23:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-17475</guid>
		<description>One approach we have used successfully was to embed the mysql server into our C++ test executables. At least for the relatively small database that the project included this worked reasonably well.
No modifications to the database access layer were necessary and creating a blank database was just a matter of copying some small files into a temporary directory. You loose the ability to easily debug the content of the database, but with some dump-tools this was not a big problem.</description>
		<content:encoded><![CDATA[<p>One approach we have used successfully was to embed the mysql server into our C++ test executables. At least for the relatively small database that the project included this worked reasonably well.<br />
No modifications to the database access layer were necessary and creating a blank database was just a matter of copying some small files into a temporary directory. You loose the ability to easily debug the content of the database, but with some dump-tools this was not a big problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Applications et bases de données, comment tester ? &#171; Choses à faire</title>
		<link>http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-17452</link>
		<dc:creator>Applications et bases de données, comment tester ? &#171; Choses à faire</dc:creator>
		<pubDate>Thu, 17 Dec 2009 09:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-17452</guid>
		<description>[...] les Mocks peuvent ne pas être appropriés pour les tests d&#8217;accès à la base, certains les déconseillent même vivement.Les avantages sont une vitesse d&#8217;exécution bien supérieure, en plus de pouvoir tester [...]</description>
		<content:encoded><![CDATA[<p>[...] les Mocks peuvent ne pas être appropriés pour les tests d&#8217;accès à la base, certains les déconseillent même vivement.Les avantages sont une vitesse d&#8217;exécution bien supérieure, en plus de pouvoir tester [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathanr</title>
		<link>http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-16651</link>
		<dc:creator>nathanr</dc:creator>
		<pubDate>Fri, 10 Jul 2009 11:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-16651</guid>
		<description>justinb is spot on unit tests responsibility is to test the actual implementation of a class. Outside/external components that are outside of the control or scope of a codebase is something that gets addressed with integration tests. Were the focus is to exercise interaction between different components whether they are internal or external to a codebase.</description>
		<content:encoded><![CDATA[<p>justinb is spot on unit tests responsibility is to test the actual implementation of a class. Outside/external components that are outside of the control or scope of a codebase is something that gets addressed with integration tests. Were the focus is to exercise interaction between different components whether they are internal or external to a codebase.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The power of a good SQL naming convention at Xaprb</title>
		<link>http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-15291</link>
		<dc:creator>The power of a good SQL naming convention at Xaprb</dc:creator>
		<pubDate>Sun, 26 Oct 2008 07:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/#comment-15291</guid>
		<description>[...] Here are a couple of concrete ideas. With the conventions I&#8217;ve shown, it&#8217;s easy to write a simple recursive program that can examine your entire database for data consistency, based only on naming conventions. And you can easily write a program to dump an account and all its related data (client, employee, and so on) for such purposes as migrating a client to a new shard or creating a dataset for a test suite. [...]</description>
		<content:encoded><![CDATA[<p>[...] Here are a couple of concrete ideas. With the conventions I&#8217;ve shown, it&#8217;s easy to write a simple recursive program that can examine your entire database for data consistency, based only on naming conventions. And you can easily write a program to dump an account and all its related data (client, employee, and so on) for such purposes as migrating a client to a new shard or creating a dataset for a test suite. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
