<?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: Is a dedicated database connection for testing purposes needed?</title>
	<atom:link href="http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Thu, 09 Sep 2010 06:34:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: RoadHouse</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1802</link>
		<dc:creator>RoadHouse</dc:creator>
		<pubDate>Sun, 10 Dec 2006 05:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1802</guid>
		<description>Well

With two branches it&#039;s more easily to liberate small release, following the web2.0 principles</description>
		<content:encoded><![CDATA[<p>Well</p>
<p>With two branches it&#8217;s more easily to liberate small release, following the web2.0 principles</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1663</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Sun, 03 Dec 2006 16:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1663</guid>
		<description>@KesheR, RoadHouse and James Booker: Thanks for your comments!

@RoadHouse: I used some time ago a similar approach as described by Joel Moss. But in the meantime I use a different approach: I have two branches (trunk and live) in my repository, in trunk I have the database configuration for my local environment, and in the live branch I have the configuration for the live server. So I do not have to add any logic to switch the database configurations.

@James Booker: Yeah, that&#039;s the way I worked up to now. But now I am trying to move to an approach that uses only one connection on the dev server as I use the second connection rather seldom.</description>
		<content:encoded><![CDATA[<p>@KesheR, RoadHouse and James Booker: Thanks for your comments!</p>
<p>@RoadHouse: I used some time ago a similar approach as described by Joel Moss. But in the meantime I use a different approach: I have two branches (trunk and live) in my repository, in trunk I have the database configuration for my local environment, and in the live branch I have the configuration for the live server. So I do not have to add any logic to switch the database configurations.</p>
<p>@James Booker: Yeah, that&#8217;s the way I worked up to now. But now I am trying to move to an approach that uses only one connection on the dev server as I use the second connection rather seldom.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Booker</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1629</link>
		<dc:creator>James Booker</dc:creator>
		<pubDate>Sat, 02 Dec 2006 08:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1629</guid>
		<description>Actually I think it&#039;s a MUST to have two connections on your development server, and one on your live server. This is how I do it:

Live server has one database, one connection

Dev server has two databases, two connections. Default connection is what&#039;s used for development work and such, daily use. Before shipping code to the live site, I take a dump of the live, production database, and import it into my development &#039;test&#039; database, switch modes, and do one final run-through on a clean, yet valid database with the code I&#039;ve just written - testing every feature I&#039;ve modified (and if I have time those i haven&#039;t - just in case!)

That way I&#039;ve so far (fingers crossed) never had a hiccup with moving code to the production server</description>
		<content:encoded><![CDATA[<p>Actually I think it&#8217;s a MUST to have two connections on your development server, and one on your live server. This is how I do it:</p>
<p>Live server has one database, one connection</p>
<p>Dev server has two databases, two connections. Default connection is what&#8217;s used for development work and such, daily use. Before shipping code to the live site, I take a dump of the live, production database, and import it into my development &#8216;test&#8217; database, switch modes, and do one final run-through on a clean, yet valid database with the code I&#8217;ve just written &#8211; testing every feature I&#8217;ve modified (and if I have time those i haven&#8217;t &#8211; just in case!)</p>
<p>That way I&#8217;ve so far (fingers crossed) never had a hiccup with moving code to the production server</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RoadHouse</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1597</link>
		<dc:creator>RoadHouse</dc:creator>
		<pubDate>Thu, 30 Nov 2006 22:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1597</guid>
		<description>heya cakebaker!

my 2 cents: i have the same opinion, im my projects i use the $default database for the development, this make my deploys more simples, because i dont have to change any code im my apps, just a ftp &quot;put&quot; =:]

btw, the Joel Moss´s solution it´s a nice aproach to this situation</description>
		<content:encoded><![CDATA[<p>heya cakebaker!</p>
<p>my 2 cents: i have the same opinion, im my projects i use the $default database for the development, this make my deploys more simples, because i dont have to change any code im my apps, just a ftp &#8220;put&#8221; =:]</p>
<p>btw, the Joel Moss´s solution it´s a nice aproach to this situation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KesheR</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1574</link>
		<dc:creator>KesheR</dc:creator>
		<pubDate>Wed, 29 Nov 2006 22:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1574</guid>
		<description>I never used, certanly. If I want to switch the database I just overwrite database.php.</description>
		<content:encoded><![CDATA[<p>I never used, certanly. If I want to switch the database I just overwrite database.php.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1568</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 29 Nov 2006 16:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1568</guid>
		<description>@all: Thanks for your comments. It seems you guys work quite different then I do. So my decision to use a different database configuration file for the test suite was not that bad ;-)</description>
		<content:encoded><![CDATA[<p>@all: Thanks for your comments. It seems you guys work quite different then I do. So my decision to use a different database configuration file for the test suite was not that bad ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Moss</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1566</link>
		<dc:creator>Joel Moss</dc:creator>
		<pubDate>Wed, 29 Nov 2006 15:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1566</guid>
		<description>I think it depends on how the test config is used. As mentioned at http://joelmoss.info/switchboard/blog/1978:Cakes_easypeasy_database_config I use it in the same way as Walker does. I develop on my local windows machine and deploy to my linux server.

Using the method described in my post above, I never nead to modify the database.php once it is setup.</description>
		<content:encoded><![CDATA[<p>I think it depends on how the test config is used. As mentioned at <a href="http://joelmoss.info/switchboard/blog/1978:Cakes_easypeasy_database_config" rel="nofollow">http://joelmoss.info/switchboard/blog/1978:Cakes_easypeasy_database_config</a> I use it in the same way as Walker does. I develop on my local windows machine and deploy to my linux server.</p>
<p>Using the method described in my post above, I never nead to modify the database.php once it is setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walker Hamilton</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1564</link>
		<dc:creator>Walker Hamilton</dc:creator>
		<pubDate>Wed, 29 Nov 2006 15:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1564</guid>
		<description>Yes, definitely!

My company uses svn and we all work remotely, so everyone checks out the entire app and runs it on their local machine. We have an app_model.php file in /app that checks to see what the host is (everyone edits their host file, so my computer is walker.dev and yours would be daniel.dev, etc) then it uses the db config matched up with that hostname

$walker = array(....)
$daniel = array(....) 
etc

Then default is set to whatever the production environment will be. That way, everyone can continue to develop and easily deploy even after the first version of the app has gone live.</description>
		<content:encoded><![CDATA[<p>Yes, definitely!</p>
<p>My company uses svn and we all work remotely, so everyone checks out the entire app and runs it on their local machine. We have an app_model.php file in /app that checks to see what the host is (everyone edits their host file, so my computer is walker.dev and yours would be daniel.dev, etc) then it uses the db config matched up with that hostname</p>
<p>$walker = array(&#8230;.)<br />
$daniel = array(&#8230;.)<br />
etc</p>
<p>Then default is set to whatever the production environment will be. That way, everyone can continue to develop and easily deploy even after the first version of the app has gone live.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yebot</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1562</link>
		<dc:creator>Yebot</dc:creator>
		<pubDate>Wed, 29 Nov 2006 14:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1562</guid>
		<description>You might have to test functionality that sends a message to a series of email addresses that are in your db.  If you setup a  test db with false email addresses, your tests won&#039;t go out into the real-world.</description>
		<content:encoded><![CDATA[<p>You might have to test functionality that sends a message to a series of email addresses that are in your db.  If you setup a  test db with false email addresses, your tests won&#8217;t go out into the real-world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/comment-page-1/#comment-1559</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 29 Nov 2006 11:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/29/is-a-dedicated-database-connection-for-testing-purposes-needed/#comment-1559</guid>
		<description>The two connection presets come in handy for me personally as i test on my local machine and then deploy on my production server.

The username/passwords are more often than not different for the 2 databases (although they typically share the same name).  Having the 2 different set ups makes it easy to facilitate this.</description>
		<content:encoded><![CDATA[<p>The two connection presets come in handy for me personally as i test on my local machine and then deploy on my production server.</p>
<p>The username/passwords are more often than not different for the 2 databases (although they typically share the same name).  Having the 2 different set ups makes it easy to facilitate this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
