gpt4 book ai didi

python - Pydev codecoverage 结果不出现

转载 作者:太空宇宙 更新时间:2023-11-03 13:41:34 27 4
gpt4 key购买 nike

我已经设置了 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com