-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use coverage with jython #322
Comments
I'm not sure what "python COVERAGEDIR" means: where did that come from? Generally, the problem here is that you have to get coverage installed into your Jython installation. The windows installer won't know about Jython, so you'll need to do it more manually: untar the source tarball, and use "jython setup.py install". The HTML issue is known, I should document that. |
Original comment by Chris Bannan (Bitbucket: cmbannan, GitHub: cmbannan) Sorry about the incomplete COVERAGEDIR comment. That is from the Jython coverage instructions. See section 6.2.1 at http://www.jython.org/devguide/coverage.html There is a work-around for jython. It is in the original bug report. |
@cmbannan Sorry I've taken so long to get back to this. I'd like to get back to testing under Jython, so I'm trying to reproduce these problems now. If you have any more information, I'd be grateful. |
Original comment by Loic Dachary (Bitbucket: dachary, GitHub: dachary) I tried to reproduce the problem with jython-2.5.3 on Ubuntu 16.04 but got the following error
|
Original comment by Loic Dachary (Bitbucket: dachary, GitHub: dachary) See another coveragepy issue for more information on jython support for coveragepy |
Also, #551 reports Jython problems that I am trying to fix. More Jython info is definitely appreciated. |
As of 4d9c54230ba7 (bb), I can run "jython -m coverage run myprog.py". |
This was shipping in 4.3.2. |
Originally reported by Chris Bannan (Bitbucket: cmbannan, GitHub: cmbannan)
Using the windows installer, there is no coveragepy directory created.
Therefore
python COVERAGEDIR
cannot be usedBut, using the bitbucket clone, that directory is created
To use coverage with python, one can run
python -m coverage run sample.py
There is no equivalent for jython.
However,
jython \coveragepy\__main__.py run sample.py
does workThis seems like it is not what you intended.
Also,
jython \coveragepy\__main__.py html
fails. The error is attached.My environment is
Coverage.py, version 3.7.1
Python 2.7
Jython 2.7b2
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
The text was updated successfully, but these errors were encountered: