我已经设置了 codecoverage 以与 pydev 一起运行,但结果没有出现。
正在关注 this answer我在 ~/.metadata/.plugins/org.python.pydev.debug/coverage 找到了 .coverage 文件,它工作正常(在那里运行覆盖率报告时给出结果,当我从 pydev 执行它时得到空等) .
有人知道我在哪里可以配置路径以获取 Eclipse 插件的结果吗?
最佳答案
我遇到了同样的问题,解决方案是从 3.x 分支(即 pip install "coverage < 4.0.0"
)安装 coverage。
PyDev coverage documentation page 上有提示:
... the integration is tested with version 3.4, so, this is the recommended version.
Coverage v4 的默认报告文件名及其格式已更改。旧文件名为 ~/.metadata/.plugins/org.python.pydev.debug/coverage/.coverage
它包含二进制 marshal
'ed 输出(根据 this answer )。较新的是~/.metadata/.plugins/org.python.pydev.debug/coverage/.coverage.0
它包含以 !coverage.py 为前缀的 JSON 字符串:这是一种私有(private)格式,不要直接读取它! ;-)
关于python - Pydev codecoverage 结果不出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30074927/