<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/assets/rss.xsl" type="text/xsl"?><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>Sacha Chua - tag - features</title>
	<atom:link href="https://sachachua.com/blog/tag/features/feed/index.xml" rel="self" type="application/rss+xml" />
	<atom:link href="https://sachachua.com/blog/tag/features" rel="alternate" type="text/html" />
	<link>https://sachachua.com/blog/tag/features/feed/index.xml</link>
	<description>Emacs, sketches, and life</description>
  
	<lastBuildDate>Mon, 06 Jul 2026 16:20:27 GMT</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>daily</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>11ty</generator>
  <item>
		<title>Drupal Features and Drush: updating our development workflow</title>
		<link>https://sachachua.com/blog/2010/10/drupal-features-and-drush-updating-our-development-workflow/</link>
		<dc:creator><![CDATA[Sacha Chua]]></dc:creator>
		<pubDate>Sat, 23 Oct 2010 12:00:00 GMT</pubDate>
    <category>drupal</category>
<category>geek</category>
<category>work</category>
		<guid isPermaLink="false">https://sachachua.com/blog/?p=21831</guid>
		<description><![CDATA[<p> I'm working with two other people on a Drupal project, so we're coordinating our work through a Subversion source code repository. A lot has changed in Drupal since the days when I dived into the source code to figure out the code I needed in order to duplicate the configuration changes I made through the web interface (<a href="https://sachachua.com/blog/2009/04/drupal-staging-and-deployment-tips-its-all-code/">Drupal staging and deployment: it's all code</a>). Now, the <a href="http://drupal.org/project/features">Features</a> module can export various configuration bits as a module that you can check into your source tree and enable on your site. It will even show you which settings you've overridden through the web interface, so you can regenerate the code and make sure everything's included. </p>
<p> <a href="http://drupal.org/project/drush">Drush</a> (the Drupal shell) has some commands that make Drupal features even easier to use. For example, I use <code>drush features-diff &lt;feature_name&gt;</code> to see which settings I've changed, and <code>drush features-update</code> to re-export the settings to source code. </p>
<p> Because we'll be using Features to share our changes instead of working off SQL backups, I need to make sure that I've included all the relevant components in the features I create. One way to test that is to use <a href="http://drupal.org/project/backup_migrate">Backup and Migrate</a> to save my configured database (just in case!), load a previous backup, enable the feature, and confirm that everything works as expected.  </p>
<p> Tests using either <a href="http://drupal.org/project/simpletest">SimpleTest</a> or <a href="http://seleniumhq.org/">Selenium</a> would be the best way to confirm everything is working, of course. When Stuart comes back on Monday, he can help us set up an environment using <a href="https://hudson.dev.java.net/">hudson</a> as a continuous integration server. Stuart has set up Selenium tests before, and <a href="http://www.computerminds.co.uk/hudson-and-simpletest">it might be possible to use simpletest with hudson</a> also. </p>

<p>You can <a href="https://sachachua.com/blog/2010/10/drupal-features-and-drush-updating-our-development-workflow/#comment">view 2 comments</a> or <a href="mailto:sacha@sachachua.com?subject=Comment%20on%20https%3A%2F%2Fsachachua.com%2Fblog%2F2010%2F10%2Fdrupal-features-and-drush-updating-our-development-workflow%2F&body=Name%20you%20want%20to%20be%20credited%20by%20(if%20any)%3A%20%0AMessage%3A%20%0ACan%20I%20share%20your%20comment%20so%20other%20people%20can%20learn%20from%20it%3F%20Yes%2FNo%0A">e-mail me at sacha@sachachua.com</a>.</p>]]></description>
		</item>
	</channel>
</rss>