<div dir="ltr">Sure,<div><br></div><div>the trick is that it&#39;s possible with either “trace” or “coverage” python modules to programmatically record which lines of the tested code files are executed by which test. The resulting mapping then can be used to pick which test methods to run. (given the diff)  <br></div><div><br></div><div>More explanation and also working code is under the links I sent initially.</div><div><br></div><div>Tibor</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 7:43 PM, Thomi Richards <span dir="ltr">&lt;<a href="mailto:thomi.richards@canonical.com" target="_blank">thomi.richards@canonical.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Hi,</div><div class="gmail_extra"><span class=""><br><div class="gmail_quote">On Sat, Mar 14, 2015 at 3:57 AM, Tibor Arpas <span dir="ltr">&lt;<a href="mailto:tibor.arpas@infinit.sk" target="_blank">tibor.arpas@infinit.sk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>E.g. it automatically selects only tests dependent on recent changes and deselects all the others. The concept is quite general, technically feasible and it&#39;s possible to finish this and also implement the same for other test runners if there is interest. </div><div></div></blockquote></div><br><br></span>This seems.. too good to be true. Would you mind explaining a bit about how it works? Off the top of my head, I can&#39;t think of any reliable way to determine a list of test cases that need to be run, given a diff of source code. Am I missing something?<br><br clear="all"><div><br></div><div>Cheers,</div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><div>Thomi Richards<br></div><a href="mailto:thomi.richards@canonical.com" target="_blank">thomi.richards@canonical.com</a><br></div></div>
</font></span></div></div>
</blockquote></div><br></div>