<div dir="ltr">In my opinion this would be a terrible waste of time for this case. To really test this you would have to setup Selenium (or similar) to test in a wide variety of OSes/Browsers. If the alternative is to bundle a handful of known working JS files with coverage...why bother?</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 3, 2014 at 6:59 AM, Daniel Staple -X (dastaple - BSKYB at Cisco) <span dir="ltr">&lt;<a href="mailto:dastaple@cisco.com" target="_blank">dastaple@cisco.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&gt; From: <a href="mailto:testing-in-python-bounces@lists.idyll.org">testing-in-python-bounces@lists.idyll.org</a> [mailto:<a href="mailto:testing-in-python-">testing-in-python-</a><br>

&gt; <a href="mailto:bounces@lists.idyll.org">bounces@lists.idyll.org</a>] On Behalf Of Ned Batchelder<br>
&gt; Sent: 03 March 2014 11:38<br>
&gt; To: Ben Finney; <a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
&gt; Subject: Re: [TIP] Disable keyboard shortcuts in html coverage reports?<br>
<div><div class="h5">&gt;<br>
&gt; On 3/2/14 10:32 PM, Ben Finney wrote:<br>
&gt; &gt; Ned Batchelder &lt;<a href="mailto:ned@nedbatchelder.com">ned@nedbatchelder.com</a>&gt; writes:<br>
&gt; &gt;<br>
&gt; &gt;&gt; On 3/2/14 4:37 PM, Thomi Richards wrote:<br>
&gt; &gt;&gt;&gt; I&#39;ve managed to track the problem down to the &#39;jquery.hotkeys.js&#39;<br>
&gt; &gt;&gt;&gt; file. In Precise this is version &#39;0.8&#39;, in trusty it&#39;s &#39;0.8+&#39;. [&hellip;]<br>
&gt; &gt;&gt; This sounds like the problem is not in coverage.py at all, but in the<br>
&gt; &gt;&gt; jquery.hotkeys.js file it depends on? Perhaps Trusty shouldn&#39;t take a<br>
&gt; &gt;&gt; new version, or you can get in touch with the developer?<br>
&gt; &gt; Ideally, you as the author of a library depending on<br>
&gt; &gt; &ldquo;jquery.hotkeys.js&rdquo;, should communicate with the author of that<br>
&gt; &gt; library to make sure newer versions continue to work with your dependent<br>
&gt; code.<br>
&gt; &gt;<br>
&gt; &gt; If there are changes in the library (and changes so small they<br>
&gt; &gt; apparently don&#39;t warrant an increase in the version string) that cause<br>
&gt; &gt; dependent code to break, the library code and/or the dependent code<br>
&gt; &gt; needs to be fixed.<br>
&gt; &gt;<br>
&gt; &gt; Do you agree?<br>
&gt; &gt;<br>
&gt; Actually, as you know, I was in favor of having my own copy of these tiny<br>
&gt; jQuery libraries that I needed to make coverage.py work. You were in favor<br>
&gt; of applying the Debian philosophy of making everything a separate library, no<br>
&gt; matter how finely sliced. &nbsp;The theory was that I could automatically get fixes.<br>
&gt; Now I&#39;ve automatically gotten bugs. &nbsp;I had a package that worked. &nbsp;Debian<br>
&gt; has a package that does not. &nbsp;Now I have to chase down the author? &nbsp;:(<br>
&gt;<br>
&gt; Who made the decision to upgrade the package in Debian?<br>
&gt;<br>
&gt; --Ned.<br>
<br>
</div></div>This may sound ludicrous but:<br>
* Packages have dependents in machine readable formats<br>
* Dependents can have automatic test suites. I&#39;d be surprised if coverage.py didn&#39;t.<br>
* This could be run as automated testing with Travis or Jenkins.<br>
* There are a number of free open source test infrastructure providers.<br>
<br>
I am aware it is much more complicated than this and probably requires time to set up, but it wouldn&#39;t be unreasonable to suggest setting up a hook to trigger the coverage.py tests in Debian when the packages it depends on change. Perhaps when slicing so thinly - something like this is what would protect the packages from breaking like this.<br>

<br>
Danny<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>David<br>blog: <a href="http://www.traceback.org" target="_blank">http://www.traceback.org</a><br>twitter: <a href="http://twitter.com/dstanek" target="_blank">http://twitter.com/dstanek</a><div>
www: <a href="http://dstanek.com" target="_blank">http://dstanek.com</a></div>
</div>