Cwgordon7's blog - paris simpletest sprint
/taxonomy/term/13/0
enParis SimpleTest Sprint, Day 2
/paris-simpletest-sprint-day-2
<p><img src="http://buytaert.net/images/drupal/timeline-drupal-7-testing.jpg" align="right" /><br />
Only hours ago, after over three years of work on the SimpleTest module, <a href="http://drupal.org/cvs?commit=111813">Dries committed the SimpleTest module to core</a>. This is an <strong>amazing</strong> achievement. Drupal is looking at getting 100% core test coverage, both unit and functional. A lot of work went into the SimpleTest module today before it was committed. We (the Drupal SimpleTest Sprinters) set up an SVN repository containing a version of Drupal with SimpleTest there as a module, and opened it up for all of us to commit. It was chaos (in a good way). Without the roadblock of patches, code was rapidly sucked into the SimpleTest module; finally Dries had to give us a SimpleTest "code freeze" so as to actually start to get stuff to work.</p>
<h2>Current SimpleTest Status</h2>
<p>SimpleTest is in core! What can be left to do? Actually, a lot, but first, let's go over what we've done today:</p>
<ul>
<li>
<img src="/misc/watchdog-ok.png" /> Got SimpleTest into Core!
</li>
<li>
<img src="/misc/watchdog-ok.png" /> Got all tests except for Trigger and Poll tests actually passing!
</li>
<li>
<img src="/misc/watchdog-ok.png" /> Got PHPCoverage to generate a 500 MB XML file on Rok's laptop! (Though we have yet to find a script that can deal with all that data without crashing).
</li>
<li>
<img src="/misc/watchdog-ok.png" /> Made SimpleTest's web interface <strong>pretty</strong> with the addition of <em>icons</em> and <em>assertion groups</em>!
</li>
<li>
<img src="/misc/watchdog-ok.png" /> Got the code necessary for <a href="http://testing.drupal.org/">testing.drupal.org</a> working!
</li>
</ul>
<p>And then, there are <a href="http://groups.drupal.org/node/10099">the things that are left to do</a>:</p>
<p><a href="/paris-simpletest-sprint-day-2" target="_blank">read more</a></p>/paris-simpletest-sprint-day-2#commentsdrupalparis simpletest sprintsimpletestSun, 20 Apr 2008 23:02:07 +0000cwgordon713 at Paris SimpleTest Sprint, Day 1
/paris-simpletest-sprint-day-1
<p>Today we began the <a href="http://drupal.org/project/simpletest">SimpleTest</a> code sprint! This is an area of <a href="http://buytaert.net/drupal-7-timeline">huge importance to Drupal</a>, as one of our weaknesses has proven to be the number of testers we have, particularly how small that number is. Automated testing will provide an easy way to maintain the quality of core— each time a patch is created for core, it will be sent off to a <a href="http://testing.drupal.org/">testing server</a> where the patch will be applied to a copy of the Drupal core and all the SimpleTests run on it. If there are failures, the patch would be marked as such and whoever submitted the patch would be forced to hang their head in <strong>shame</strong>.</p>
<h2>What we accomplished today</h2>
<p>Today, Dries Buytaert, Rok Žlender, Károly Négyesi, Jimmy Berry, Kevin Bridges, Douglas Hubler, Miglius Alaburda and I got together for 10 hours for the sole purpose of improving automated testing in core. It was great. We bounced ideas off one another, and came up with a great <a href="/paris-simpletest-sprint-day-1#unit-testing">plan for unit testing with mock functions and classes</a> without runkit. We made our <a href="/paris-simpletest-sprint-day-1#test-coverage">test coverage tests</a> work, although they are still running :). We <a href="/paris-simpletest-sprint-day-1#simpletest-pres">gave a presentation</a> to the people at Drupal Camp Paris on how to write basic functional tests for both core and contributed modules. We talked to Dries about the possibility of <a href="http://drupal.org/node/243335">getting SimpleTest into core</a>.</p>
<p><a href="/paris-simpletest-sprint-day-1" target="_blank">read more</a></p>/paris-simpletest-sprint-day-1#commentsdrupalparis simpletest sprintsimpletestSat, 19 Apr 2008 23:18:44 +0000cwgordon712 at