[TIP] A tool to guess what tests to run given a diff?

Kumar McMillan kumar.mcmillan at gmail.com
Sun Apr 10 20:01:43 PDT 2011


On Thu, Apr 7, 2011 at 4:55 PM, Ned Batchelder <ned at nedbatchelder.com> wrote:
> figleaf has a feature called sections which is used to track for each line
> of code which test executed it.  Is that what you're thinking of?

aha, I did try this once (a long time ago) with figleaf.  I don't
think I got it working but I can't remember why.  Hmm, I'll take a
look again.  Thanks Ned.

>
> --Ned.
>
> On 4/7/2011 4:15 PM, Kumar McMillan wrote:
>>
>> My search-foo is failing but I thought there was a post on TIP or
>> mention somewhere in the community about a tool that can be used to
>> guess what tests to run based on a diff.  Does this ring a bell?  For
>> a very large test suite I'd like to take my current diff that affects
>> unknown parts of the system and figure out which tests I should run.
>> This obviously would never be 100% accurate but it might serve as a
>> quick spot check before pushing to a continuous integration server
>> that will run the whole entire suite.  Slow tests are not fun.
>>
>> I guess this would work in reverse to code coverage: you'd take a
>> function or module and ask which tests execute that code.  Python's
>> trace will probably support this but it would be nice if someone has
>> already done the work to set it up.
>>
>> -Kumar
>>
>> _______________________________________________
>> testing-in-python mailing list
>> testing-in-python at lists.idyll.org
>> http://lists.idyll.org/listinfo/testing-in-python
>>
>



More information about the testing-in-python mailing list