<?xml version="1.0" encoding="UTF-8"?>
<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>Martin Pitt &#187; testing</title>
	<atom:link href="http://www.piware.de/tag/testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.piware.de</link>
	<description>addicted to Ubuntu development</description>
	<lastBuildDate>Mon, 19 Jul 2010 13:55:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Apport crash processing now enabled for Maverick</title>
		<link>http://www.piware.de/2010/07/apport-crash-processing-now-enabled-for-maverick/</link>
		<comments>http://www.piware.de/2010/07/apport-crash-processing-now-enabled-for-maverick/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 13:46:06 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[Apport]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.piware.de/?p=346</guid>
		<description><![CDATA[The Debian import freeze is settled, the first rush of major changes went into Maverick, and the dust now has settled a bit. Thus it&#8217;s time to turn back some attention to crashes and quality in general. This morning I created maverick chroots for the Apport retracers, and they are currently processing the backlog. I [...]]]></description>
			<content:encoded><![CDATA[<p>The Debian import freeze is settled, the first rush of major changes went into Maverick, and the dust now has settled a bit. Thus it&#8217;s time to turn back some attention to crashes and quality in general.</p>
<p>This morning I created maverick chroots for the <a href="https://wiki.ubuntu.com/Apport#Launchpad-based auto-retracer">Apport retracers</a>, and they are currently processing the backlog. I also uploaded a new Apport package which now enables crash reporting by default again.</p>
<p>Happy segfaulting!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2010/07/apport-crash-processing-now-enabled-for-maverick/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Celebrating the 1000th postgresql-common commit</title>
		<link>http://www.piware.de/2010/05/celebrating-the-1000th-postgresql-common-commit/</link>
		<comments>http://www.piware.de/2010/05/celebrating-the-1000th-postgresql-common-commit/#comments</comments>
		<pubDate>Mon, 03 May 2010 15:58:28 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[bzr]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.piware.de/?p=331</guid>
		<description><![CDATA[I just did the 1000th commit of postgresql-common, the Debian/Ubuntu PostgreSQL management utilities. Wow, what started as a small hack in December 2004 to be able to install several major PostgreSQL versions in parallel has turned out to be a > 600 kB project providing a comprehensive tool set for uniformly setting up, upgrading, and [...]]]></description>
			<content:encoded><![CDATA[<p>I just did the <a href="http://bazaar.launchpad.net/~pitti/postgresql/common/revision/1000">1000th commit</a> of <a href="http://people.debian.org/~mpitt/architecture.html">postgresql-common</a>, the Debian/Ubuntu PostgreSQL management utilities. Wow, what started as a small hack in December 2004 to be able to install several major PostgreSQL versions in parallel has turned out to be a > 600 kB project providing a comprehensive tool set for uniformly setting up, upgrading, and maintaining PostgreSQL database instances from version 7.4 up to the just announced <a href="http://www.postgresql.org/about/news.1198">9.0 beta-1</a>, with a comprehensive test suite that I&#8217;m really proud of (it tests just about every aspect, option, and corner case of the installation, integration, upgrade, locale support, and error handling, and takes about half an hour on my system).</p>
<p>The actual commit is rather dull though, it&#8217;s just the release/upload tag for version 107 which I just uploaded to Debian unstable (it will hit Ubuntu maverick and backports soon). 107 introduces support for PostgreSQL 9.0, and I fixed up the scripts and tests enough so that all the tests pass now, and thus it&#8217;s good for public release.</p>
<p>I also uploaded the 9.0 beta 1 server itself now. It&#8217;ll be in <a href="http://ftp-master.debian.org/new.html">Debian&#8217;s NEW queue</a> for a bit, and hit experimental in a few days (or hours; recently the ftpmasters have been awesome!) It has a few cool new features (see <a href="http://www.postgresql.org/about/news.1198">the announcement</a>), and upstream really appreciates testing and feedback. So, bug reports appreciated!</p>
<p>In particular, if you have existing 8.4 clusters you can just try to <code>pg_upgradecluster</code> them to 9.0 beta 1. Remember, if anything goes wrong, the cluster of the previous version is still intact and untouched, so you can run upgrades as many times as you like and only pg_dropcluster the old one when you’re completely satisfied with the upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2010/05/celebrating-the-1000th-postgresql-common-commit/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PostgreSQL bug fix releases up for testing in Ubuntu</title>
		<link>http://www.piware.de/2010/04/postgresql-bug-fix-releases-up-for-testing-in-ubuntu/</link>
		<comments>http://www.piware.de/2010/04/postgresql-bug-fix-releases-up-for-testing-in-ubuntu/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 08:08:29 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[proposed]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.piware.de/?p=298</guid>
		<description><![CDATA[PostgreSQL did microrelease updates three weeks ago: 8.4.3, 8.3.10, and 8.1.20 are the ones relevant for Debian/Ubuntu. There haven&#8217;t been reports about regressions in Debian or the upstream lists so far, so it&#8217;s time to push these into stable releases. The new releases are in Lucid Beta-2, and hardy/jaunty/karmic-proposed. If you are running PostgreSQL, please [...]]]></description>
			<content:encoded><![CDATA[<p>PostgreSQL did microrelease updates three weeks ago: <a href="http://www.postgresql.org/docs/8.4/static/release-8-4-3.html">8.4.3</a>, <a href="http://www.postgresql.org/docs/8.3/static/release-8-3-10.html">8.3.10</a>, and <a href="http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-1-20">8.1.20</a> are the ones relevant for Debian/Ubuntu. There haven&#8217;t been reports about regressions in Debian or the upstream lists so far, so it&#8217;s time to push these into stable releases.</p>
<p>The new releases are in Lucid Beta-2, and hardy/jaunty/karmic-proposed. If you are running PostgreSQL, please upgrade to the proposed versions and give feedback to <a href="https://bugs.launchpad.net/bugs/557408">LP #557408</a>.</p>
<p>Updates for Debian Lenny are prepared as well, and await <a href="http://lists.debian.org/debian-release/2010/04/msg00053.html">release team ack</a>.</p>
<p>On a related note, I recently fixed quite a major problem in <code>pg_upgradecluster</code> in <code>postgresql-common 106</code>: It did not copy database-level ACLs and configuration settings (<a href="http://bugs.debian.org/543506">Debian #543506</a>). Fixing this required some reenginering of the upgrade process. It&#8217;s all thoroughly test case&#8217;d, but practical feedback would be very welcome! Remember, if anything goes wrong, the cluster of the previous version is still intact and untouched, so you can run upgrades as many times as you like and only <code>pg_dropcluster</code> the old one when you&#8217;re completely satisfied with the upgrade.</p>
<p>Thanks,</p>
<p>Martin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2010/04/postgresql-bug-fix-releases-up-for-testing-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New PostgreSQL releases need testing</title>
		<link>http://www.piware.de/2009/12/new-postgresql-releases-need-testing/</link>
		<comments>http://www.piware.de/2009/12/new-postgresql-releases-need-testing/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 19:16:40 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[proposed]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.piware.de/?p=255</guid>
		<description><![CDATA[Yesterday PostgreSQL released new security/bug fix microreleases 8.4.2, 8.3.9, and 8.1.19, which fix two security issues and a whole bunch of bugs. Updates for all supported Ubuntu releases are built in the ubuntu-security-proposed PPA. They pass the upstream and postgresql-common test suites, but more testing is heavily appreciated! Please give feedback in bug LP#496923. Thanks!]]></description>
			<content:encoded><![CDATA[<p>Yesterday PostgreSQL <a href="http://www.postgresql.org/about/news.1170">released new security/bug fix microreleases</a> 8.4.2, 8.3.9, and 8.1.19, which fix two <a href="http://www.postgresql.org/support/security">security issues</a> and a whole bunch of bugs.</p>
<p>Updates for all supported Ubuntu releases are built in the <a href="https://launchpad.net/~ubuntu-security-proposed/+archive/ppa/+packages">ubuntu-security-proposed PPA</a>. They pass the upstream and postgresql-common test suites, but more testing is heavily appreciated! Please give feedback in <a href="https://launchpad.net/bugs/496923">bug LP#496923</a>.</p>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2009/12/new-postgresql-releases-need-testing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PostgreSQL security/bug fix update, please test</title>
		<link>http://www.piware.de/2009/09/postgresql-securitybug-fix-update-please-test/</link>
		<comments>http://www.piware.de/2009/09/postgresql-securitybug-fix-update-please-test/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 22:39:33 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[proposed]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.piware.de/?p=146</guid>
		<description><![CDATA[PostgreSQL recently published new point releases which fix the usual range of important bugs (data loss/wrong results, etc.) and additionally fix another case of insecure &#8220;security definer&#8221; functions (the analogon to setuid programs in file system space for SQL functions) (CVE-2007-6600). Please see the complete changes for 8.1.18 (Ubuntu 6.06 LTS), 8.3.8 (Ubuntu 8.04 LTS, [...]]]></description>
			<content:encoded><![CDATA[<p>PostgreSQL recently published new point releases which fix the usual range of important bugs (data loss/wrong results, etc.) and additionally fix another case of insecure &#8220;security definer&#8221; functions (the analogon to setuid programs in file system space for SQL functions) (CVE-2007-6600). Please see the complete changes for <a href="http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-1-18">8.1.18</a> (Ubuntu 6.06 LTS), <a href="http://www.postgresql.org/docs/8.3/static/release-8-3-8.html">8.3.8</a> (Ubuntu 8.04 LTS, 8.10, and 9.04), and <a href="http://www.postgresql.org/docs/8.4/static/release-8-4-1.html">8.4.1</a> (Ubuntu 9.10).</p>
<p>8.4.1 is already in Ubuntu 9.10 and in my <a href="https://launchpad.net/~pitti/+archive/postgresql">PostgreSQL Backports PPA</a> for Ubuntu 8.04 LTS and 9.04. Updates for the other supported Ubuntu releases are currently in -proposed, waiting for testing feedback.</p>
<p>If you use PostgreSQL, please give the -proposed packages some testing and report back in <a href="https://launchpad.net/bugs/430544">Ubuntu bug #430544</a>. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2009/09/postgresql-securitybug-fix-update-please-test/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Karmic: guest session is back</title>
		<link>http://www.piware.de/2009/09/karmic-guest-session-is-back/</link>
		<comments>http://www.piware.de/2009/09/karmic-guest-session-is-back/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 19:07:49 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[guest-session]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[regression]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.piware.de/?p=134</guid>
		<description><![CDATA[It has been broken for two months, since we upgraded to the &#8220;new&#8221; (not quite any more) gdm in Karmic: But I finally got around to re-doing the gdm patch for supporting a guest session for 2.27. I use it myself a lot for testing stuff with a clean user profile, so I can finally [...]]]></description>
			<content:encoded><![CDATA[<p>It has been broken for two months, since we upgraded to the &#8220;new&#8221; (not quite any more) gdm in Karmic: But I finally got around to re-doing the gdm patch for supporting a guest session for 2.27. I use it myself a lot for testing stuff with a clean user profile, so I can finally delete my herd of test users again.</p>
<p>One known drawback is that the guest session is not currently restricted by AppArmor rules yet. I&#8217;ll get to this at some point, I filed <a href="https://launchpad.net/bugs/425793">LP #425793</a> to keep it on the radar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2009/09/karmic-guest-session-is-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easier testing for Apport bug patterns</title>
		<link>http://www.piware.de/2009/05/easier-testing-for-apport-bug-patterns/</link>
		<comments>http://www.piware.de/2009/05/easier-testing-for-apport-bug-patterns/#comments</comments>
		<pubDate>Thu, 28 May 2009 07:55:08 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Apport]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://martinpitt.wordpress.com/?p=77</guid>
		<description><![CDATA[This morning I added a test script to the Apport bug patterns. This finally allows you to reliably test a new bug pattern before you actually commit/push it. You can invoke it with either a .crash file, or a Launchpad bug number: $ ./test-local 122988 Matched bug pattern: https://launchpad.net/bugs/122637 $ ./test-local /var/crash/_bin_bash.1000.crash No match]]></description>
			<content:encoded><![CDATA[<p>This morning I added a <a href="http://people.canonical.com/~pitti/bugpatterns/test-local">test script</a> to the <a href="http://people.canonical.com/~pitti/bugpatterns/README">Apport bug patterns</a>.</p>
<p>This finally allows you to reliably test a new bug pattern before you actually<br />
commit/push it. You can invoke it with either a .crash file, or a Launchpad bug<br />
number:</p>
<p> <code><br />
 $ ./test-local 122988<br />
 Matched bug pattern: https://launchpad.net/bugs/122637<br />
 $ ./test-local /var/crash/_bin_bash.1000.crash<br />
 No match<br />
 </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2009/05/easier-testing-for-apport-bug-patterns/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PostgreSQL 8.4beta1 available for testing</title>
		<link>http://www.piware.de/2009/04/postgresql-84beta1-available-for-testing/</link>
		<comments>http://www.piware.de/2009/04/postgresql-84beta1-available-for-testing/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 15:04:39 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://martinpitt.wordpress.com/?p=61</guid>
		<description><![CDATA[Some days ago, the first public beta of PostgreSQL 8.4 was announced. I uploaded a CVS snapshot to Debian experimental two weeks ago, but it didn&#8217;t make it out of NEW yet. Packaging the actual 8.4 bits was actually pretty easy, just took me half a day to adapt the 8.3 packaging and eventually figuring [...]]]></description>
			<content:encoded><![CDATA[<p>Some days ago, the first public beta of <a href="http://www.postgresql.org/about/news.1074">PostgreSQL 8.4 was announced</a>. I uploaded a CVS snapshot to Debian experimental two weeks ago, but it didn&#8217;t make it out of NEW yet.</p>
<p>Packaging the actual 8.4 bits was actually pretty easy, just took me half a day to adapt the 8.3 packaging and eventually  figuring out how to build the entire documentation from SGML sources with Debian/Ubuntu&#8217;s <a>broken</a> <a>docbook-utils</a>.</p>
<p>I spent much more work work on supporting 8.4 in <a href="http://people.debian.org/~mpitt/architecture.html">postgresql-common</a>, especially with the new per-database locales, migrating changed postgresql.conf parameters in pg_upgradecluster, and so on. Now almost all of the &gt; 1000 tests pass, so I believe it is pretty solid now.</p>
<p>The only exception is the changed behaviour in verifying the server side&#8217;s SSL certificate from the client side. At first I thought it was a bug, and <a href="http://archives.postgresql.org/pgsql-bugs/2009-04/msg00072.php">reported it to upstream</a>, but it evolved into a pretty lengthy and interesting discussion about the right defaults for SSL verification. I&#8217;ll work on better defaults, and the test suite to pass 100% soon.</p>
<p>I invite you give the beta a good beating. Packages for Ubuntu 8.04 LTS and 9.04 are in my<br />
<a href="https://launchpad.net/~pitti/+archive/postgresql">postgresql PPA</a>. Due to postgresql-common, you can safely run 8.4 in parallel with existing 8.3 instances, test-upgrade your 8.3 ones to 8.4 and compare them, etc.</p>
<p>Feedback appreciated!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2009/04/postgresql-84beta1-available-for-testing/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Wanna touch DeviceKit?</title>
		<link>http://www.piware.de/2009/03/wanna-touch-devicekit/</link>
		<comments>http://www.piware.de/2009/03/wanna-touch-devicekit/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 07:54:37 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[deprecation]]></category>
		<category><![CDATA[devicekit]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://martinpitt.wordpress.com/?p=49</guid>
		<description><![CDATA[Still remember the &#8220;hal is dead, long live DeviceKit&#8221; buzz? It&#8217;s time to finally lay our hands on it. DeviceKit and DeviceKit-power themselves are available for a while in Jaunty&#8217;s universe, but installing them by themselves is pretty boring, of course. Last Saturday I packaged the new gnome-power-manager 2.25.x which is now devkit-ified and doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Still remember the <a href="http://www.piware.de/2008/05/07/hal-is-dead-long-live-devicekit/">&#8220;hal is dead, long live DeviceKit&#8221;</a> buzz? It&#8217;s time to finally lay our hands on it.</p>
<p>DeviceKit and DeviceKit-power themselves are available for a while in Jaunty&#8217;s universe, but installing them by themselves is pretty boring, of course.</p>
<p>Last Saturday I packaged the new gnome-power-manager 2.25.x which is now devkit-ified and doesn&#8217;t use hal any more. It is now available in the <a href="https://launchpad.net/~ubuntu-desktop/+archive/ppa">ubuntu-desktop PPA</a>. Please try it, break it, and complain <a href="http://bugzilla.gnome.org/buglist.cgi?query=product%3Agnome-power-manager">over there</a> <img src='http://www.piware.de/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>It works quite well for me, the only thing I noticed is that it currently seems to break my hibernate hotkey. Still investigating..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2009/03/wanna-touch-devicekit/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Python code coverage</title>
		<link>http://www.piware.de/2008/04/python-code-coverage/</link>
		<comments>http://www.piware.de/2008/04/python-code-coverage/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 14:39:01 +0000</pubDate>
		<dc:creator>pitti</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[jockey]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://martinpitt.wordpress.com/?p=6</guid>
		<description><![CDATA[Today I was playing with python-coverage, which seems to be the tool of choice for code coverage measurement in Python. Since I am constantly hacking on Jockey&#8217;s test suite, I want to strive for perfection and cover everything, so it does sound like something worthwhile. First I tried to use it like documented: python /usr/share/python-support/python-coverage/coverage.py [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was playing with python-coverage, which seems to be the tool of choice for code coverage measurement in Python. Since I am constantly hacking on Jockey&#8217;s test suite, I want to strive for perfection and cover everything, so it does sound like something worthwhile.</p>
<p>First I tried to use it like documented:</p>
<blockquote><p><code>python /usr/share/python-support/python-coverage/coverage.py -x tests/run</code></p></blockquote>
<p>which just caused the tests not to run at all, for no immediately obvious reason (it worked fine with real Python modules in apport). However, it gets much nicer once you stop trying to wrap it around the command line call and start to integrate it into the test suite code itself:</p>
<blockquote><p><code>import coverage<br />
coverage.erase()<br />
coverage.exclude('raise NotImplementedError')<br />
coverage.start()</code></p>
<p>[... run all the tests ... ]</p>
<p>coverage.stop()<br />
coverage.report(glob(&#8216;jockey/*.py&#8217;))<br />
coverage.report(glob(&#8216;examples/handlers/*.py&#8217;))<br />
coverage.erase()</p></blockquote>
<p>(which is more or less what I <a href="http://bazaar.launchpad.net/~jockey-hackers/jockey/trunk/revision/266">committed</a>).</p>
<p>This will run all the tests, and give me a report about how much code they covered, plus a list of code lines which weren&#8217;t touched. For example:</p>
<blockquote><p><code>Name                 Stmts   Exec  Cover   Missing<br />
jockey/handlers        248    242    97%   402-405, 420-421, 514<br />
</code></p></blockquote>
<p>Also, the exclude() interface is much more flexible than putting #pragmas all over the place (which do not seem to really work anyway unfortunately).</p>
<p>Now, off to fixing everything to get 100%. I was surprised how many little bugs I found and fixed while completing the tests. Test suites FTW!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.piware.de/2008/04/python-code-coverage/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
