我正在尝试学习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
知道为什么要克服错误吗?