[Launchpad-dev] Bzr plugin for guessing relevant test modules: Fault line
vila
v.ladeuil+lp at free.fr
Thu Jun 2 16:42:46 UTC 2011
>>>>> Aaron Bentley <aaron at aaronbentley.com> writes:
> On 11-06-01 07:11 AM, John Arbash Meinel wrote:
>> You could consider doing stuff with 'coverage' to do the opposite
>> method. Which is to run each test and find what files it exercises. Then
>> link them up in reverse. However, that is probably a lot slower anyway.
> It sounds like an interesting alternative approach. I think both
> approaches are flawed, but better than nothing.
Yup. I've been thinking about the coverage-based approach for quite some
time: run each test in isolation, establish which lines are covered,
then, from a diff, for each line modified, add the corresponding tests.
There is quite a high price to pay upfront but then the increments
should reasonably fast to calculate and reasonably accurate. But I won't
bet this could replace a full test suite run.
I think your approach, while being more fuzzy is also more pragmatic and
should give strong and pretty good hints.
Thanks for that,
Vincent
More information about the bazaar
mailing list