<?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: Being a Responsible Owner</title>
	<atom:link href="http://shawnwilsher.com/archives/145/feed" rel="self" type="application/rss+xml" />
	<link>http://shawnwilsher.com/archives/145</link>
	<description></description>
	<lastBuildDate>Wed, 03 Mar 2010 21:06:45 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jonathan Watt</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2756</link>
		<dc:creator>Jonathan Watt</dc:creator>
		<pubDate>Mon, 31 Mar 2008 09:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2756</guid>
		<description>Shawn: Sure, those are all reasons for writing tests, and all these reasons should be presented to our contributors. That&#039;s orthogonal to my point though. I was saying that if a volunteer isn&#039;t happy to write tests (for whatever reason) after being given the full explanation, we shouldn&#039;t chase them away by also demanding tests or making them feel bad. We&#039;ve managed to ship good software in the past without good test coverage (not sure how :-) ), but we&#039;ve never managed to ship good software without volunteers.</description>
		<content:encoded><![CDATA[<p>Shawn: Sure, those are all reasons for writing tests, and all these reasons should be presented to our contributors. That&#8217;s orthogonal to my point though. I was saying that if a volunteer isn&#8217;t happy to write tests (for whatever reason) after being given the full explanation, we shouldn&#8217;t chase them away by also demanding tests or making them feel bad. We&#8217;ve managed to ship good software in the past without good test coverage (not sure how :-) ), but we&#8217;ve never managed to ship good software without volunteers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: On Unit Testing Requirements</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2752</link>
		<dc:creator>On Unit Testing Requirements</dc:creator>
		<pubDate>Mon, 31 Mar 2008 05:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2752</guid>
		<description>[...] policy doesn&#8217;t allow for that as an exception, so someone else needs to write the test. One commenter suggested that someone else write the test(s) for the patch submitter. From a patcher&#8217;s [...]</description>
		<content:encoded><![CDATA[<p>[...] policy doesn&#8217;t allow for that as an exception, so someone else needs to write the test. One commenter suggested that someone else write the test(s) for the patch submitter. From a patcher&#8217;s [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Wilsher</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2751</link>
		<dc:creator>Shawn Wilsher</dc:creator>
		<pubDate>Mon, 31 Mar 2008 04:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2751</guid>
		<description>@Stuart

As much as I&#039;d like to say &quot;we can get to this test later,&quot;  I&#039;m pretty much bound by toolkit review policy [1], which states &quot;All patches must include unit tests which are run during &lt;code&gt;make check&lt;/code&gt;.&quot;  I&#039;m trying to be responsible and actually follow this policy, even though I know many submodules in toolkit don&#039;t.

While it&#039;s true that we have a testing community, there are (last I knew) over one hundred tests for the download manager alone.  In the past, it&#039;s taken them several weeks to find regressions to things (many of which would have been easily tested with a unit test).  On top of that, there are a lot of things that simply have no test coverage in litmus or in the automated test suite.  I personally found out about a lot of download manager features because people filed a bug saying that we broke it a few weeks ago.

@Jonathan

I don&#039;t exactly agree with you.  When I first started hacking, I had a lot of fun just learning all the new techniques to do things.  Writing tests is just another good technique to writing better code.  It helps to prove that your fix is correct, it makes sure you don&#039;t break what you just fixed in the future, and it makes sure you have a more sensible API (usually) because you have to test it.

@jag

Doesn&#039;t look like it, but we do have the in-testsuite flags, which there are currently 28 download manager bugs marked as such.

I get your point, but I think we need to work to make (2) the defacto choice for the good of the codebase.

@Bernd

But who would write the tests for the second group?  If you leave that to the module owner, he or she could very easily get swamped just writing tests and doing reviews.

[1] http://www.mozilla.org/projects/toolkit/review.html</description>
		<content:encoded><![CDATA[<p>@Stuart</p>
<p>As much as I&#8217;d like to say &#8220;we can get to this test later,&#8221;  I&#8217;m pretty much bound by toolkit review policy [1], which states &#8220;All patches must include unit tests which are run during <code>make check</code>.&#8221;  I&#8217;m trying to be responsible and actually follow this policy, even though I know many submodules in toolkit don&#8217;t.</p>
<p>While it&#8217;s true that we have a testing community, there are (last I knew) over one hundred tests for the download manager alone.  In the past, it&#8217;s taken them several weeks to find regressions to things (many of which would have been easily tested with a unit test).  On top of that, there are a lot of things that simply have no test coverage in litmus or in the automated test suite.  I personally found out about a lot of download manager features because people filed a bug saying that we broke it a few weeks ago.</p>
<p>@Jonathan</p>
<p>I don&#8217;t exactly agree with you.  When I first started hacking, I had a lot of fun just learning all the new techniques to do things.  Writing tests is just another good technique to writing better code.  It helps to prove that your fix is correct, it makes sure you don&#8217;t break what you just fixed in the future, and it makes sure you have a more sensible API (usually) because you have to test it.</p>
<p>@jag</p>
<p>Doesn&#8217;t look like it, but we do have the in-testsuite flags, which there are currently 28 download manager bugs marked as such.</p>
<p>I get your point, but I think we need to work to make (2) the defacto choice for the good of the codebase.</p>
<p>@Bernd</p>
<p>But who would write the tests for the second group?  If you leave that to the module owner, he or she could very easily get swamped just writing tests and doing reviews.</p>
<p>[1] <a href="http://www.mozilla.org/projects/toolkit/review.html" rel="nofollow">http://www.mozilla.org/projects/toolkit/review.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernd</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2750</link>
		<dc:creator>Bernd</dc:creator>
		<pubDate>Sun, 30 Mar 2008 15:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2750</guid>
		<description>There should be a separation between contributors who have cvs write permission and volunteers who do not. There should be no excuses for  the first group.</description>
		<content:encoded><![CDATA[<p>There should be a separation between contributors who have cvs write permission and volunteers who do not. There should be no excuses for  the first group.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jag</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2749</link>
		<dc:creator>jag</dc:creator>
		<pubDate>Sun, 30 Mar 2008 14:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2749</guid>
		<description>Do keywords like testwanted and testneeded exist? How about landing certain patches with those keywords added?

Also, you don&#039;t want to get into a situation where the choices are 1) fix regression by fixing an obvious typo, but now I have to write a test and *insert exc^H^H^Hreason I can&#039;t right now*, or 2) back out the change (and with that some other feature or fix) that caused regression in the first place (with the added benefit of putting the test-writing burden on the regressor). When (2) becomes more attractive than (1), guess where people will look.

I know that&#039;s probably exaggerating things just a tad, but I am trying to make a point ;-)</description>
		<content:encoded><![CDATA[<p>Do keywords like testwanted and testneeded exist? How about landing certain patches with those keywords added?</p>
<p>Also, you don&#8217;t want to get into a situation where the choices are 1) fix regression by fixing an obvious typo, but now I have to write a test and *insert exc^H^H^Hreason I can&#8217;t right now*, or 2) back out the change (and with that some other feature or fix) that caused regression in the first place (with the added benefit of putting the test-writing burden on the regressor). When (2) becomes more attractive than (1), guess where people will look.</p>
<p>I know that&#8217;s probably exaggerating things just a tad, but I am trying to make a point ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Watt</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2743</link>
		<dc:creator>Jonathan Watt</dc:creator>
		<pubDate>Sun, 30 Mar 2008 00:18:07 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2743</guid>
		<description>I think putting pressure on volunteers to write tests when their good will doesn&#039;t extend that far is very unwise - at least in the long run. Right now, during the run up to Firefox 3, it makes some sense. We need to do everything possible to make sure fixes don&#039;t introduce worse bugs. In the long run we should be willing to accept what people are willing to contribute though. Writing tests should be strongly encouraged, and we should explain to people why they&#039;re so important. This shouldn&#039;t come at the expense of taking the fun away from volunteer contributors though. Patches and tests don&#039;t necessarily need to come from the same people.</description>
		<content:encoded><![CDATA[<p>I think putting pressure on volunteers to write tests when their good will doesn&#8217;t extend that far is very unwise &#8211; at least in the long run. Right now, during the run up to Firefox 3, it makes some sense. We need to do everything possible to make sure fixes don&#8217;t introduce worse bugs. In the long run we should be willing to accept what people are willing to contribute though. Writing tests should be strongly encouraged, and we should explain to people why they&#8217;re so important. This shouldn&#8217;t come at the expense of taking the fun away from volunteer contributors though. Patches and tests don&#8217;t necessarily need to come from the same people.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Parmenter</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2742</link>
		<dc:creator>Stuart Parmenter</dc:creator>
		<pubDate>Sat, 29 Mar 2008 20:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2742</guid>
		<description>separately from their patches in the sense of get tests that cover what is there currently, not that all tests for new code/changes/areas should be done separately from the bug they&#039;re fixing</description>
		<content:encoded><![CDATA[<p>separately from their patches in the sense of get tests that cover what is there currently, not that all tests for new code/changes/areas should be done separately from the bug they&#8217;re fixing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Parmenter</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2741</link>
		<dc:creator>Stuart Parmenter</dc:creator>
		<pubDate>Sat, 29 Mar 2008 20:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2741</guid>
		<description>Shawn: Requiring tests raises the bar of entry pretty high in many cases.  I don&#039;t think you&#039;ll get much argument from anyone that tests are good, but I think it is important to balance adding tests with progress.  I would suggest that you as a module owner attempt to get people to build tests separately from their patches to get the additional coverage you want.  We also have an amazing testing community who while isn&#039;t quite as fast as our automated tests, is pretty close.  I don&#039;t see a lot of harm in letting them help to find regressions.  Certainly if you keep hitting the same problem over and over again automated tests will be valuable, but it isn&#039;t clear from your post or Edward&#039;s that this is the case.</description>
		<content:encoded><![CDATA[<p>Shawn: Requiring tests raises the bar of entry pretty high in many cases.  I don&#8217;t think you&#8217;ll get much argument from anyone that tests are good, but I think it is important to balance adding tests with progress.  I would suggest that you as a module owner attempt to get people to build tests separately from their patches to get the additional coverage you want.  We also have an amazing testing community who while isn&#8217;t quite as fast as our automated tests, is pretty close.  I don&#8217;t see a lot of harm in letting them help to find regressions.  Certainly if you keep hitting the same problem over and over again automated tests will be valuable, but it isn&#8217;t clear from your post or Edward&#8217;s that this is the case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Wilsher</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2740</link>
		<dc:creator>Shawn Wilsher</dc:creator>
		<pubDate>Sat, 29 Mar 2008 17:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2740</guid>
		<description>@FrnchFrgg

I realize my post didn&#039;t make this clear - I&#039;m not upset with you about the patch and lack of tests.  In fact, I didn&#039;t hear you complain - you just asked for clarification on what needed to be tested.  I&#039;m upset about other people who were indicated that I was being unreasonable for asking for a test because they clearly don&#039;t get it.</description>
		<content:encoded><![CDATA[<p>@FrnchFrgg</p>
<p>I realize my post didn&#8217;t make this clear &#8211; I&#8217;m not upset with you about the patch and lack of tests.  In fact, I didn&#8217;t hear you complain &#8211; you just asked for clarification on what needed to be tested.  I&#8217;m upset about other people who were indicated that I was being unreasonable for asking for a test because they clearly don&#8217;t get it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FrnchFrgg</title>
		<link>http://shawnwilsher.com/archives/145/comment-page-1#comment-2739</link>
		<dc:creator>FrnchFrgg</dc:creator>
		<pubDate>Sat, 29 Mar 2008 17:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://shawnwilsher.com/archives/145#comment-2739</guid>
		<description>The problem in my case is that I don&#039;t (or didn&#039;t) know how to write tests and what to test for; so I was completely stuck for some time when you asked for a test. Add on top of that my own crunch time because I am in the middle of the written tests for an hiring contest, and you get a non written test which blocks a patch, even if I swear I didn&#039;t think the test was too stupid for me to write it.</description>
		<content:encoded><![CDATA[<p>The problem in my case is that I don&#8217;t (or didn&#8217;t) know how to write tests and what to test for; so I was completely stuck for some time when you asked for a test. Add on top of that my own crunch time because I am in the middle of the written tests for an hiring contest, and you get a non written test which blocks a patch, even if I swear I didn&#8217;t think the test was too stupid for me to write it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
