Jquery file error when running from working tree

Niklas Hambüchen avatarNiklas Hambüchen 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 (3)

  1. Niklas Hambüchen

    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.

  2. Ned Batchelder

    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.

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.