<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 9/17/13 7:42 AM, Lucian Ciufudean wrote:<br>
    <blockquote
cite="mid:CANn=0kxhBxxYGDEzppJfNY9XgxxycdFg_iFDEPyApxgFkQM__A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi guys,
        <div><br>
        </div>
        <div>I embarked on the road of obtaining a coverage report for
          functional tests against a server process. The server is
          deployed as .pyc files, and the source files can be made
          available in a separate subversion working folder. I wouldn't
          want to edit any existing .py files.</div>
        <div><br>
        </div>
        <div>Can coverage work with .pyc files - I am getting errors
          when using coverage run main.pyc from the command line, so
          maybe with the API? <br>
        </div>
      </div>
    </blockquote>
    <br>
    Hmm, you're right: "coverage run foo.pyc" does not work. I've
    created a ticket for this:
<a class="moz-txt-link-freetext" href="https://bitbucket.org/ned/coveragepy/issue/264/coverage-wont-run-pyc-files">https://bitbucket.org/ned/coveragepy/issue/264/coverage-wont-run-pyc-files</a><br>
    <br>
    <blockquote
cite="mid:CANn=0kxhBxxYGDEzppJfNY9XgxxycdFg_iFDEPyApxgFkQM__A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>I tired this also, my custom code is run but it can not
          find the source files at the time of coverage.html_report()
          although I passed the directory of source files to
          coverage.coverage.</div>
      </div>
    </blockquote>
    <br>
    You'll have to show details of how you tried to run coverage.&nbsp; If
    the .py files are in the places reported by your program, then it
    should work.&nbsp; You can also use the [paths] section of a .coveragerc
    to instruct coverage where the files are.<br>
    <br>
    --Ned.<br>
    <br>
    <blockquote
cite="mid:CANn=0kxhBxxYGDEzppJfNY9XgxxycdFg_iFDEPyApxgFkQM__A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Thanks a lot,</div>
        <div>Lucian</div>
      </div>
      <br>
      <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>