运维网's Archiver
论坛
›
Python
› python coverage 使用技巧
zhangbinmy
发表于 2018-8-6 09:17:59
python coverage 使用技巧
import coverage
def aadd():
class object():
pass
def work(self): pass
def work()
cove = coverage.Coverage()
cove.start()
a = Control()
a.work()
cove.stop()
cove.html_report(directory='/root/CheetahWeb/')
页:
[1]
查看完整版本:
python coverage 使用技巧