<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 6/16/16 8:30 AM, David Stanek wrote:<br>
    <blockquote
cite="mid:CAO69Nd=D21QGS6PeFk3SvNiWXAnjJiRRO52m+EXowfDwAuqFhA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_quote">
          <div dir="ltr">On Wed, Jun 15, 2016 at 11:38 PM Li, Xiaoyan
            &lt;<a moz-do-not-send="true"
              href="mailto:xiaoyan.li@intel.com" target="_blank">xiaoyan.li@intel.com</a>&gt;
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
            Anyone kindly gives me any suggestions how to check code
            coverage like above test.py?<br>
            <br>
          </blockquote>
          <div><br>
          </div>
          <div>I've used the coverage API[1] in webapps to record
            coverage in very long running processes. I would write
            coverage data when someone authenticated against a
            /dump_coverage endpoint. This allowed me to run a series of
            tests and then dump the coverage for those tests.</div>
          <div><br>
          </div>
          <div>1. <a moz-do-not-send="true"
              href="https://coverage.readthedocs.io/en/coverage-4.1/api.html">https://coverage.readthedocs.io/en/coverage-4.1/api.html</a> </div>
        </div>
      </div>
      <br>
    </blockquote>
    Another possible approach, though not one I can provide sample code
    for, is to catch a signal that you can send to the process to have
    it dump its state.<br>
    <br>
    --Ned.<br>
    <blockquote
cite="mid:CAO69Nd=D21QGS6PeFk3SvNiWXAnjJiRRO52m+EXowfDwAuqFhA@mail.gmail.com"
      type="cite">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
testing-in-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>
<a class="moz-txt-link-freetext" href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>