[TIP] Merging coverage results
Alex Gaynor
alex.gaynor at gmail.com
Wed Jun 5 20:31:55 PDT 2013
I may cobble something together, this is a medium-low priority thing for a
side project, so no guarantees, sorry :(
Alex
On Mon, Jun 3, 2013 at 6:14 PM, Ned Batchelder <ned at nedbatchelder.com>wrote:
> There's nothing there to do what you want, but a refactoring through a
> few layers in data.py would make it possible. Are you going to cobble
> together something yourself?
>
> --Ned.
>
>
> On 6/2/2013 12:04 PM, Alex Gaynor wrote:
>
> What I meant is that I have the contents of
> `pickle.load(open(".coverage"))` as an object in my program.
>
> Alex
>
>
> On Sun, Jun 2, 2013 at 4:55 AM, Ned Batchelder <ned at nedbatchelder.com>wrote:
>
>> Alex, you seem to be on the cutting edge of unusual uses of
>> coverage.py! When you say you have the data in memory, what does that mean
>> exactly?
>>
>> It sounds like what you need is a refactoring of
>> coverage/data.py:CoverageData.combine_parallel_data to allow you to feed
>> data into a combining step.
>>
>> --Ned.
>>
>>
>> On 6/1/2013 4:16 PM, Alex Gaynor wrote:
>>
>> Hi all,
>>
>> I'm looking to merge some coverage results from different CI runs, I
>> see coverage.py has a combine option which basically does what I want.
>> However, I have an interesting constraint! I don't have a disk, I just have
>> the .coverage data loaded up in memory. The format looks pretty simple, so
>> I bet I could write a merger myself, but I wonder if there's a programmatic
>> API that would do it for me? I traced through the code, and it doesn't look
>> like there's one that I could easily use, but perhaps I missed something!
>>
>> Alex
>>
>> --
>> "I disapprove of what you say, but I will defend to the death your right
>> to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
>> "The people's good is the highest law." -- Cicero
>> GPG Key fingerprint: 125F 5C67 DFE9 4084
>>
>>
>> _______________________________________________
>> testing-in-python mailing listtesting-in-python at lists.idyll.orghttp://lists.idyll.org/listinfo/testing-in-python
>>
>>
>>
>
>
> --
> "I disapprove of what you say, but I will defend to the death your right
> to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
> "The people's good is the highest law." -- Cicero
> GPG Key fingerprint: 125F 5C67 DFE9 4084
>
>
>
--
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20130605/d4bd44ce/attachment.htm>
More information about the testing-in-python
mailing list