我得到错误
'NoneType' object has no attribute 'startswith'
尝试使用 gcovr(估计测试覆盖率的工具)生成 html 报告时
知道我应该如何解决它吗?有关信息,我在 Ubuntu 14.04 上。请参阅下面的详细错误消息:
parallels:try_gcovr$ gcovr -r . --html
Traceback (most recent call last):
File "/usr/local/bin/gcovr", line 1970, in <module>
print_html_report(covdata, options.html_details)
File "/usr/local/bin/gcovr", line 1373, in print_html_report
ttmp = os.path.abspath(options.output).split('.')
File "/usr/lib/python2.7/posixpath.py", line 367, in abspath
if not isabs(path):
File "/usr/lib/python2.7/posixpath.py", line 61, in isabs
return s.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'