<p>You can use the same logic about hit rate that u did for merge --auto. If something is hit 1000 times it isn't as relevant as one that is hit 1 time. Similarly a test that covers 1000 lines of code isn't as interesting as one that covers 10. Those are also usually faster tests to run. So you can do "progressive" testing. The first tests are fast and focused, later ones still cover the area, final ones aren't related. Especially w Robert's work to use lsprof as the data source.<br>
=:-></p>
<div class="gmail_quote">On Jun 2, 2011 8:14 PM, "Aaron Bentley" <<a href="mailto:aaron@aaronbentley.com">aaron@aaronbentley.com</a>> wrote:<br type="attribution">> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>> <br>> On 11-06-02 12:42 PM, vila wrote:<br>>>>>>>> Aaron Bentley <<a href="mailto:aaron@aaronbentley.com">aaron@aaronbentley.com</a>> writes:<br>>> Yup. I've been thinking about the coverage-based approach for quite some<br>
>> time: run each test in isolation, establish which lines are covered,<br>>> then, from a diff, for each line modified, add the corresponding tests.<br>> <br>> The issue I thought of with coverage-based testing is that you might get<br>
> spurious positives. For example, most of our tests will cover<br>> Branch.last_revision, so if you change that, which ones should you run?<br>> <br>>> There is quite a high price to pay upfront but then the increments<br>
>> should reasonably fast to calculate and reasonably accurate. But I won't<br>>> bet this could replace a full test suite run.<br>> <br>> No, but Launchpad's test suite takes several hours to run. Because of<br>
> this, shortcuts that help us find the likely test failures quickly are a<br>> bigger win for Launchpad than for bzr.<br>> <br>> Aaron<br>> -----BEGIN PGP SIGNATURE-----<br>> Version: GnuPG v1.4.11 (GNU/Linux)<br>
> Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>> <br>> iEYEARECAAYFAk3nxN0ACgkQ0F+nu1YWqI3aPACghrjV/GLrFfsb6e5Dav+SRnQg<br>> rgUAn1lvsYHANaN9qb841ZIhlGlHPK8z<br>
> =m/fU<br>> -----END PGP SIGNATURE-----<br>> <br></div>