<div dir="ltr">What I meant is that I have the contents of `pickle.load(open(".coverage"))` as an object in my program.<div><br></div><div style>Alex</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sun, Jun 2, 2013 at 4:55 AM, Ned Batchelder <span dir="ltr"><<a href="mailto:ned@nedbatchelder.com" target="_blank">ned@nedbatchelder.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
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?<br>
<br>
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.<span class="HOEnZb"><font color="#888888"><br>
<br>
--Ned.</font></span><div><div class="h5"><br>
<br>
<div>On 6/1/2013 4:16 PM, Alex Gaynor wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>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!</div>
<div><br>
</div>
<div>Alex<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">"I disapprove of what you say, but I will
defend to the death your right to say it." -- Evelyn
Beatrice Hall (summarizing Voltaire)<br>
"The people's good is the highest law." -- Cicero<br>
<div>GPG Key fingerprint: 125F 5C67 DFE9 4084</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><div class="im"><pre>_______________________________________________
testing-in-python mailing list
<a href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.org</a>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a>
</pre>
</div></blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">"I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)<br>
"The people's good is the highest law." -- Cicero<br><div>GPG Key fingerprint: 125F 5C67 DFE9 4084</div></div>
</div>