Pydev codec search results not showing

I installed codecoverage to run with pydev, but the results are not displayed.

Following this answer , I found the .coverage file in the ~ / .metadata / .plugins / org.python.pydev.debug / coverage file and it works correctly (gives the result when I run the coverage report there, it becomes empty when I do it with pydev etc.).

Does anyone know where I can configure the path to get results in the Eclipse plugin?

+3
python eclipse code-coverage pydev
source share
1 answer

I had the same problem, and the solution was to install coverage from the 3.x branch (ie pip install "coverage < 4.0.0" ).

There is a hint PyDev docs documentation page :

... integration is tested with version 3.4, so this is the recommended version.

Coverage v4 has a default report file name and its format has been changed. The previous file name was ~/.metadata/.plugins/org.python.pydev.debug/coverage/.coverage and contained binary marshal 'ed output (according to this answer ). Newer is located in ~/.metadata/.plugins/org.python.pydev.debug/coverage/.coverage.0 and contains a JSON string with a prefix! Coverage.py: this is a private format, do not read it directly !; -)

+6
source share

All Articles