Jquery file error when running from working tree

Issue #228 closed
NiklasH created an issue

When running coveragepy html from its hg source tree (with the new module-running feature) as python /path/to/coveragepy, I get the following error:

IOError: [Errno 2] No such file or directory: 'htmlcov/jquery.tablesorter.min.js'

And I have the following symlink in htmlcov: jquery.tablesorter.min.js -> /usr/share/javascript/jquery-tablesorter/jquery.tablesorter.min.js

It should probably take it from [WORKING_TREE]/coverage/htmlfiles/jquery.tablesorter.min.js.

Comments (4)

  1. Ned Batchelder repo owner

    Hmm, I can't reproduce this. Why do you have a symlink? Coverage.py doesn't create that. Can you provide a detailed transcript of the error?

  2. NiklasH reporter

    I certainly did not put it there and htmlcov is created by coverage.py ... weird.

    I just run python /path/to/coveragepy run ... && python /path/to/coveragepy combine && python /path/to/coveragepy html.

  3. Ned Batchelder repo owner

    What version of Python are you using? Can you provide more details? OS version? I tried this with Python 2.7 and Python 3.3, and didn't see this behavior.

  4. Log in to comment