python代码覆盖率错误cat:/ade_info.vmd:没有这样的文件或目录

时间:2018-10-24 07:09:32

标签: python code-coverage

我正在尝试学习python中的代码覆盖率。我写了“ Hello World”程序。

Hello.py

#!//usr/bin/python

print "Hello World"

当我使用如下所示的覆盖率执行它时。

coverage run test.py

遇到错误。

cat: /ade_info.vmd: No such file or directory
/usr/local/packages/dbtest/CodeCoverage/src/cli/coverage/bin/coverage_3.0: 
line 4: [: =: unary operator expected
Initializing coverage command line 3.1
[WARNING]: coverage tool can only be run from viewplease enter the view run    
again
====================================================
Coverage Command Line -3.1
Usage : coverage [help|recomp|link|show|runtest|restore|ccvhelp]
For help, use 'coverage <command> -help' option

知道为什么要克服错误吗?

0 个答案:

没有答案