[TIP] testmon - ideas to speed up execution of test suites
tibor.arpas at infinit.sk
Mon Mar 16 12:30:50 PDT 2015
the trick is that it'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)
More explanation and also working code is under the links I sent initially.
On Mon, Mar 16, 2015 at 7:43 PM, Thomi Richards <
thomi.richards at canonical.com> wrote:
> On Sat, Mar 14, 2015 at 3:57 AM, Tibor Arpas <tibor.arpas at infinit.sk>
>> 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's possible to finish this and also implement the same for
>> other test runners if there is interest.
> 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'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?
> Thomi Richards
> thomi.richards at canonical.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python