我怎样才能用“coverage”/“coverage”获得代码覆盖率?

2024-09-26 22:50:12 发布

您现在位置:Python中文网/ 问答频道 /正文

我想得到我的代码(见https://github.com/MartinThoma/hwrt)覆盖工作服和https://coveralls.io。在

我已经用nosetests --with-coverage得到了它,它显示了20%的覆盖率。在

但是,当我运行coveralls时,它只显示

Submitting coverage to coveralls.io...
Coverage submitted!
Job #4.1
https://coveralls.io/jobs/2997583

当我运行coverage run setup.py test

^{pr2}$

我好像在用覆盖率.py错了。我该怎么用它呢?在


Tags: 代码pyhttpsiogithubcomwithcoverage

热门问题