Cannot use coverage with jython · Issue #322 · nedbat/coveragepy (original) (raw)
Originally reported by Chris Bannan (Bitbucket: cmbannan, GitHub: cmbannan)
Using the windows installer, there is no coveragepy directory created.
Therefore python COVERAGEDIR
cannot be used
But, 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 work
This 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)
- Bitbucket: https://bitbucket.org/ned/coveragepy/issue/322
- This issue had attachments: coverage-stack.txt. See the original issue for details.